Alfie_Hall
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Edin] Displaying alt-text on a posts featured imageOK – thanks for all your excellent help – I’ll have a look into this further when I get the chance!
Alfie
Forum: Themes and Templates
In reply to: [Edin] Displaying alt-text on a posts featured imageHi,
This works, but it means I have to go through all of the previous posts and make sure the image set as the featured image, is inserted into the opening of the post.
Is there no way to make a tooltip, alt-text or even a caption a default feature of the featured image?
Alternatively is there no way in the CSS Stylesheet to set a command for an individual post, much like you would with a page ID?
Thanks again!
Forum: Themes and Templates
In reply to: [Edin] Displaying alt-text on a posts featured imageThanks for your reply, I’d begun by considering this a HTML problem but had ended up messing around with CSS.
So your solution gets me closer to solving the problem, but not quite completely.
If you take a look at the page: http://sciencereligionspectrum.org/blog-posts/talking-about-science-religion-and-oneself/
I now have the image twice, once as a featured image (still no tooltip/hover) and the image repeated complete with hover over caption as required. I know I could simply now remove the featured image, but if possible I’d like to keep this so that it features when we’re sharing the link on social media.
Is there a way to use your HTML edit above, but to apply it to the featured image on a post?
Thanks again!
Forum: Themes and Templates
In reply to: [Edin] Changing featured image size on specific pagesHi sacredpath,
Thanks so much for both of your options. I’ve gone with the page-id code, and it works a treat.
One quick follow up – if I am doing this for several pages do I have to copy and paste the above code and amend the page ID, or can I list several page IDs to apply commands to? Had a quick play along the lines of:
.page-id-80 .page-id-57 .hero-wrapper {
width: 300px;
}.page-id-80 .page-id-57 .hero.with-featured-image {
width: 300px;
height: 450px;
margin-left: auto;
margin-right: auto;
}But it doesn’t seem to work. Happy to repeat the code for each page ID for now, but as the website grows this could become cumbersome.
Thanks again, getting much more confident editing CSS now!
Alex