WordPress.org

Support

Support » Themes and Templates » [Resolved] Change Post description and colour

[Resolved] Change Post description and colour

  • 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

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

    paul888

    @paul888

    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.

    Moderator stephencottontail

    @stephencottontail

    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.

    paul888

    @paul888

    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.

    paul888

    @paul888

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Change Post description and colour’ is closed to new replies.