Changing post titles only on the home page (2 posts)

  1. Gooshe
    Posted 2 years ago #


    I'm using autofocus lite theme on this website.
    I'd like to change post titles on home page (adding text shadow and make them bold so could be more readable on the photos)
    but when i change them, the post title on archives and categories change too.
    Would you please help me to change only the post titles on home page?

    Thank you

  2. WolfieZero
    Posted 1 year ago #

    Might be a bit delayed but least I have an answer...

    Use single_post_title() and apply the hook to that as it will only affect the current post title rather than all.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic