Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey there caitlinmccartan,

    How are you doing today?

    You should be able to achieve that with using home selector. So instead of adding page id your code should look like this:

    .home .headerclass {
    background: url(https://testsite.marionchonorscsj.com/wp-content/uploads/2015/01/header1.jpg);
    }

    This should do the trick for the home page. If this doesn’t work could you please post link to your site so I can take a look?

    Hope this helps ??

    Cheers,
    Bojan

    Thread Starter CAM

    (@caitlinmccartan)

    Perfect. Thank you so much!

    Thread Starter CAM

    (@caitlinmccartan)

    Another similar question. How do I update banners for Virtue’s portfolio pages? Same issue with no page ID’s on these.

    Here’s an example of a portfolio page for which I need to update the header code:
    https://testsite.marionchonorscsj.com/?portfolio=pilgrim

    Thank you!

    Hey again,

    Not exactly sure what you mean but if you’re looking to add header image on singe portfolio page you can use this selector in front of the header class:

    .single-portfolio

    or if you want for that specific portfolio page you can use portfolio post id:

    .postid-84

    You can check for those selectors by using developer tools and inspecting the page and look for page specific classes in the body element, see screenshot https://screencast.com/t/T5Lg9iUvu.

    Hope this helps ??

    Cheers,
    Bojan

    Thread Starter CAM

    (@caitlinmccartan)

    Using the page source and .postid-84 did the trick.
    Thanks again!

    Glad I could help! Have a great day ??

    Cheers,
    Bojan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Need a homepage ID for unique header’ is closed to new replies.