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
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
Hi Mike,
Thought I tried this one, probably not. It’s working fine.
Thank you, you may close this topic.
Regards,
Erwin