WordPress.org

Ready to get started?Download WordPress

Forums

Spun
[resolved] Solution for printing title of post over images in homepage (4 posts)

  1. new013
    Member
    Posted 1 year ago #

    Hello everyone,

    I posted a question about how to have the title of the posts display over the images in the circle on the homepage. Andrew Nevins was kind enough to help me with a solution so I thought I would share it here in case other people have the same issue.

    I still have to play around with it to see if I can get it to only display on hover but I am very happy to finally have something that's working to show the title!

    Here's the link to the previous post.

    If anyone has any other suggestions feel free to add them here!

    Thanks!

  2. lacigaleoulafourmi
    Member
    Posted 1 year ago #

    Hello new013.
    Thanx you for your posts!
    I try to have the titles of my posts on the circles like in your site.
    I managed to have the posts titles by following your discussion. But they are under the circles.
    Is it possible that you show me excatly the code you entered in your child theme for having the title over the image?
    I'm not a code specialist so these things are a little bit hard for me.
    Have a nice day.

  3. new013
    Member
    Posted 1 year ago #

    Hi lacigaleoulafourmi,

    I'm happy to try to help although please note that I am very new to wordpress and PHP and thus can't guarantee that this will be the correct way to do something!

    I don't think you're supposed to post long chunks of code on this forum so I've linked to the pastebin for the code...

    For my site, first I created a child theme. Then within created the "content-home.php" for my child theme with this code

    and then for my "style.css" file in my child theme I used this code

    There is more code on my style sheet to do other things (change the opacity and color of the text in the header etc.) that I removed so as not to confuse things but let me know if you need that as well.

    I hope this helps! Let me know if there is anything else that you need.

  4. kinyo42
    Member
    Posted 10 months ago #

    Hi New013

    thanks for being help, i spend days and nights to try to solve the problem you encounter before.

    I am very happy that i find the topic here

    But the child theme code and style.css you provided is missing. any chance that you can provide it again

    this is a very value-able infos, really thank to you for sharing it!!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic