Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #861385

    Hi,

    I’m trying to add a image to my post-title. Somewhere else on the site I’m using the same technique and it’s working fine. Over there I’m adding it to the entry-content. On the new place I’m hiding the entry-content, I only want to show the title with a separator between the titles. In the private-section is a link to the page I’m referring to. The second link is where I’m using the same technique.
    Working code:

    <style type = "text/css">
    .entry-content::after {
      content:url(https://mydomain.nl/wordpress/wp-content/themes/enfold-child/images/rule.jpg)!important;height:auto;padding-top:50px;
    }
    </style>
    

    Not working code at this moment, tried a couple of classes.

    <style type = "text/css">
    .main-title.entry-title a::after {
      content:url(https://mydomain.nl/wordpress/wp-content/themes/enfold-child/images/rule.jpg)!important;height:auto;margin-bottom:0px!important;
    }
    
    </style>

    Hope you have an idea how to fix this.

    Regards,

    Erwin

    #861454

    Hey erwin_m,
    Try:

    h2.post-title.entry-title::after {
      content:url(https://mydomain.nl/wordpress/wp-content/themes/enfold-child/images/rule.jpg)!important;height:auto;margin-bottom:0px!important;
    }

    Best regards,
    Mike

    #861461

    Hi Mike,

    Thought I tried this one, probably not. It’s working fine.

    Thank you, you may close this topic.

    Regards,

    Erwin

    #861539

    Hi Erwin,

    Great, glad you got it working. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding content (image) beneath post-title’ is closed to new replies.