WordPress.org

Forums

Fifteen
[resolved] Change Post description and colour (6 posts)

  1. paul888
    Member
    Posted 8 months ago #

    How do you change the content of the description that appears when the image zooms in on the main page? And also the colour for it as well?

    Thank you!

  2. Andrew
    Forum moderator
    Posted 7 months ago #

    Please provide a link to the issue, or any more information, rather than bumping.

  3. paul888
    Member
    Posted 7 months ago #

    What I mean is that when you scroll over any of the images for a Post on the homepage, that effect zooms them in and there's a post description which is a few lines showing up.

    I found the code in content-home.php that is pulling those descriptions for each post. The problem is I would like to have a custom description for each individual post. The function in content-home.php reads as follows:

    <p><?php echo substr(get_the_excerpt(),0,100)."..."; ?></p>

    So basically it is pulling the first 100 characters of each Post and using that as the description.

    How do I create a unique description for each individual Post? Hope that clarifies further.

  4. stephencottontail
    Member
    Posted 7 months ago #

    You can set a manual excerpt for each post in the panel marked "Excerpt". If it's not there, click on the tab marked "Screen Options" in the upper-right corner and enable that panel. If that doesn't help, perhaps you could post a link to a website that shows the issue.

  5. paul888
    Member
    Posted 7 months ago #

    Hey Stephen,

    Thanks for that, that works for changing the text itself which is great, but I can't seem to change the colour of that Excerpt text. The default colour it's using for me doesn't go very well with the dark background I have. With the body of the Post you can of course highlight the text and change the colour, but this doesn't work with the Excerpt text. Any ideas?

    Here's a link to our site: http://www.westcoastareana.ca/wordpress/

    You'll see the Excerpts in the dark font when you scroll over the icons. I would like to change them to white.

  6. paul888
    Member
    Posted 7 months ago #

    After doing some experimenting, you can actually add HTML to the text in the Excerpt field. Issue has now been solved. Thanks Stephen.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.