- Responsive Multi-Purpose Theme Framework! ›
- Forums ›
- Theme Support ›
- Some small issue with content display from some plugin.
Hi
I use the https://wordpress.org/plugins/recipepress-reloaded/ plugin to publish recipes. I made the following observation, based on this url: http://bit.ly/1Jmm1jo
For some reason, as you see, the description appears twice, above & below the image. No idea why. It is same for all other recipes. “Normal” posts do not exhibit this behavior. Is there any way this could be avoided?
I informed the author of the plugin about this, but he thought the problem might be from the theme. He said in his response:
#1. Something is really wrong there. The first description seems to be part of the headline when looking at the source code. Please ask the creator of your theme why he has decided to put the description into the title at
templates/post/single.php
lines 11-16. For my understanding of HTML this is really wrong!
Other posts do not behave like this & this only from the recipe plugin content.
Not quite sure what to think, so I thought I might ask you.
Thank you in advance.
First of all, its excerpt:
The WordPress Excerpt is an optional summary or description of a post; in short, a post summary.
More details: https://codex.wordpress.org/Excerpt
Basically i put string that supposed to be post summary below title for making it useful and make sense for readers.
An example usage of this:
http://resimlitarif.com/cikolatali-sakizli-cheesecake/
I will add some options in 2.0 version and you can select to display it or not but meanwhile you can hide it with this custom css code:
.rpr_description { display: none; }
Hi
Thank you for the response.
As a matter of fact, I am all for an excerpt & description, but for some reason, this is shown twice on the recipe page, such as http://bit.ly/1Jmm1jo, above & below that image. The only difference is, it is differently formatted.
I would be satisfied with just one instance.
If I use that code, it removes the description from all recipes, instead of the one instance. That means, whether on the site front page, recipe archive & specific recipe page, no description at all.
The other blog categories, such as “software”, etc … do have the normal previews/excerpt.
Other observations:
- As you note, on the recipe & site archive pages(front), whereas all other articles from different categories show an excerpt/teaser/preview (I hope this is the same thing), the recipe module generated content prints the whole description, which is a bit too long. I tried to manually insert the “read more code” <x!-xx-more-xx-x> (without => the X’s) between the 2 & 3rd sentences, but this ignored.
- 13 & 14 twenty & Mesocolumn themes only show one instance of the description
I hope I could clarify the problem better. 😉
What can I do?
Kind regards
Uhm.. try this custom css code:
.single .rpr_description { display: none; }
If still have problem, update this topic
You must be logged in to reply to this topic.