It seems that the Masonry blogpost does not clean up the excerpt of the posts and it leaves html in place. Can you please fix this so that the content is stripped of html tags?
It depends if you are using the load more or classic navigation, if you are using the load more navigation then you need to go edit : thefox/functions/ajax-handlers.php
if you are using the classic navigation then :
thefox/functions/rd_shortcodes/rd_blog.php
Do not hesitate to contact us if you have more questions.
Unfortunately i can't figure out how to make this change.
I've pasted both files as attachments, can you update them for me and let me know what i can change in order to show the excerpt and not the content on the preview box?
Also, how can i make this change be permanent and not lose it on future theme updates?
Those 2 files are files we update almost every update, what you would need to do is to use a child theme and copy all the content of the ajax-handlers.php file in your child theme functions.php file.
Do not hesitate to contact us if you have more questions.
It seems that the Masonry blogpost does not clean up the excerpt of the posts and it leaves html in place. Can you please fix this so that the content is stripped of html tags?
Hello Alex, thanks for purchasing Thefox!
For the masonry blog we are using the_content(), that's why you still got the styling.
What you can do is modify the blog file and change the_content to the_excerpt or just add custom css to make the h1~h6 tag to be showing as text.
Do not hesitate to contact us if you have more questions.
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
That is great, where can i modify the blog file, where is it located?
Hello Alex,
It depends if you are using the load more or classic navigation, if you are using the load more navigation then you need to go edit : thefox/functions/ajax-handlers.php
if you are using the classic navigation then :
thefox/functions/rd_shortcodes/rd_blog.php
Do not hesitate to contact us if you have more questions.
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Unfortunately i can't figure out how to make this change.
I've pasted both files as attachments, can you update them for me and let me know what i can change in order to show the excerpt and not the content on the preview box?
Also, how can i make this change be permanent and not lose it on future theme updates?
Thanks,Alex
I made the change, it works now, for other that want this functionality you have to change the following:
<?php if ( $post_format == 'audio' ){ echo !empty( $content ) ? $content : '';}else{ the_content(__('Read more', 'thefoxwp')); }?>
with
<?php if ( $post_format == 'audio' ){ echo !empty( $content ) ? $content : '';}else{ the_excerpt(__('Read more', 'thefoxwp')); }?>
on line 1905 of ajax-handlers.php
My question is still valid, how do i make sure i do not lose this change on future theme updates?
Hello Alex,
Glad you found what you need to modifiy,
Those 2 files are files we update almost every update, what you would need to do is to use a child theme and copy all the content of the ajax-handlers.php file in your child theme functions.php file.
Do not hesitate to contact us if you have more questions.
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme