• Hello there!

    I am having a small issue with an image I inserted on my website. If you take a look at the picture on the homepage after the slider that says “Dave Ramseys Endorsed Provider”. I inserted it there using a widget. If you click on any other page on the website, it has this logo inserted at the top of the page as well through the widget!

    Which is fine. However, I want the logo on the front page to be formatted differently than it’s currently formatted on the other pages on the website. Is there a way to only target the logo on the homepage and not the rest of the site?

    https://boboettingandassociates.com/

    • This topic was modified 7 years, 9 months ago by babussell2.
Viewing 1 replies (of 1 total)
  • @babussell2

    You can target the image as you normally would just add something to your selector to limit the changes to the home page only. In your case it’s either the home class selector or the page-id class selector

    There are two options here,

    Option #1 using the home class

    .home .execphpwidget img {
       
    }

    Option #2 using the page-id class

    .page-id-4 .execphpwidget img {
       
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Specifically Targeting Image in Widget’ is closed to new replies.