Tagged: excerpt
-
AuthorPosts
-
February 6, 2017 at 1:47 pm #743350
Blog post with the excerpt + link option shows the full content
I have added this code in excerpt too: a href=”<?php echo get_permalink(); ?>”> Read More…
Can anyone help me, please? ThanksFebruary 10, 2017 at 5:51 pm #745522Hey endanight,
you need to adjust WordPress’ excerpt length function. Check this tutorial: http://www.wpbeginner.com/wp-themes/how-to-display-post-excerpts-in-wordpress-themes/
Best regards,
AndyFebruary 17, 2017 at 3:31 pm #748493Hi, we want to show excerpts on the category overview and archive pages.
The link you supplied gives the info, but in the enfold archive.php thethe_content();
is not called.
Also the theme does not have a category.php page….How can we activate the use of excerpts in enfold?
February 20, 2017 at 1:49 pm #749335Hi,
try this code inside your functions.php:
function change_blog_archive_style() { global $avia_config; if(!is_single()){ $avia_config['blog_content'] = "excerpt_read_more"; } } add_action('get_header', 'change_blog_archive_style');
And then you can use the tag. It will display the excerpt even for archive pages.
Best regards,
AndyFebruary 20, 2017 at 2:09 pm #749356Hi Andy,
The code you supplied works great.
Only thing is now that the ‘read more’ link is place in another <div> so it is place underneath the <p>
We want the read more link to display in the same way as before, so that it is place behind the last word of the exerpt of read more text.Any idea how to achieve this?
Love to hear from you.
February 20, 2017 at 5:55 pm #749504Hi,
not sure what you mean. Please always provide us a precise link showing the elements in question and if you can use screenshots to make things clear for us.
Best regards,
AndyFebruary 20, 2017 at 10:04 pm #749617Hi Andy,
I have made two screenshots:
A: is the way the read more links shows now.
B: is how the read more link shows in the custom way (without your code). This is also the way we would like to have it.February 21, 2017 at 4:59 pm #750042Hi,
Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
AndyFebruary 21, 2017 at 5:07 pm #750045Hi andy the link supplied.
The code is installed at the moment. Without the code the read more link is inside the paragraph tag.February 21, 2017 at 7:15 pm #750116Hi,
not sure if we can help you with this one, but could you share with us admin access as well please?
Best regards,
AndyFebruary 22, 2017 at 11:46 am #750427Hi Andy,
Via the backend there is not option to change code behaviour. Thus having the <div> inside the <p.
I believe your template / theme code should be adjusted for this.February 24, 2017 at 4:03 pm #751461Hi,
at first please update WordPress and your theme to the newest versions.
Best regards,
AndyFebruary 24, 2017 at 4:15 pm #751470Hi Andy,
Will do but, updating the theme and WP does not some the way the html is build.
February 24, 2017 at 4:54 pm #751489Hi,
does it work for you with another WP theme?
Best regards,
AndyFebruary 24, 2017 at 5:54 pm #751510Hi andy, sorry but you dont understand the issue.
Please check the html code of the theme whit excerpt code and without. The theme inserts the read more in a div, it needs to be inserted inside the paragraph.
Is there anything i can explain / visualize this in a better way for you?
February 27, 2017 at 3:01 pm #752281Hi,
if you’re not using ALB, then this is not controlled by the theme, but by WordPress itself. For more information about it refer to: https://codex.wordpress.org/Customizing_the_Read_More
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.