1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CSS help wanted for page nodes

Discussion in 'Styling and Customization Questions' started by Simon R, Feb 2, 2012.

  1. Simon R

    Simon R Member

    Jake - as you nicely helped my CSS issues for the portal - how do I apply the same to a node page created with this add on ?

    I can't find the right name to reference in the extra.css

    Incase you have slept since helping - the node page is http://www.ippn.co.uk/forum/index.php?pages/Qualifications/ and the styling you helped with is on the home page

    Also I must be being dim but the site sidebar doesn't show on the node page
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    See this thread about adding a sidebar to page nodes:

    http://xenforo.com/community/threads/add-sidebar-to-pages.26353/

    For the categoryStrip styling, add this code to EXTRA.css:

    Code:
    .pagenode_container .categoryStrip
    {
    	@subHeading
    	@categoryStrip
    }
    
    Or you can add on to the existing CSS you added before, like so:

    Code:
    .EWRporta_Portal .categoryStrip,
    .pagenode_container .categoryStrip
    {
    	@subHeading
    	@categoryStrip
    }
    
    That will enable you to use the categoryStrip class in your page node like you did on your portal.
     
  3. Simon R

    Simon R Member

    Thanks Jake - I'm slowly understanding all this and NEARLY was on the right path

    Love your addon - so simple ....

    One last question (well for now) should I be coding all the page html in the node Template html box - or somehow calling a template I create in teh template list ?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You can do it either way - I use both on my site.
     
  5. Simon R

    Simon R Member

    Thanks Brogan - I'll leave it as is - as coding template hooks may be a recipe for disaster ;)
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    You don't need to code any hooks, just create a template, add your HTML to it and then just do an include in the page node HTML field.

    I do it this way for my "home" page as there are up to 10 separate sections, which I have created as individual templates.
     
  7. Simon R

    Simon R Member

    Thanks - its a steep learning curve but one for idiots like me to get to know :)
     
  8. Simon R

    Simon R Member

    If I create a Node page can I display the contents of that page in a thread ? I've got the Parse HTML add on installed
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    You could embed it as an iframe.

    BTW, I split the posts off from the add-on thread as they're not really related to that.
     

Share This Page