In this forum post, https://tranmautritam.ticksy.com/ticket/795975/, you advise to change the functions file to change the staff_tn size. However, this would be overwritten on theme update.
Can this function be used in a child theme function file?
So the change to staff_tn in the function has affected the thumbnail size used in the recent blog posts widget. It appears these use the same size...can this be edited using a child theme?
Yes, some other part use the staff_tn thumbnail size too.
Yes, you could rewrite the shortcode or ajax-handlers function in your child theme functions.php, this will overwrite the main theme functions and you will be able to change everything you want.
Are you using the classic or load more navigation?
And let the thumbnail overflow be hidden...i couldn't figure out what to edit in the core file, forget about writing a new function in the child theme.
In this forum post, https://tranmautritam.ticksy.com/ticket/795975/, you advise to change the functions file to change the staff_tn size. However, this would be overwritten on theme update.
Can this function be used in a child theme function file?
I added:
function child_theme_setup() {
add_image_size( 'staff_tn', 300, 350, true );
}
add_action( 'after_setup_theme', 'child_theme_setup', 11 );
To my child theme function file which seems to have worked though I'm not sure it's proper
Hello Janna,
This is the correct way to overwrite / change the thumbnail settings, you shouldn't have any problems.
Do not hesitate to contact us if you have more questions.
Have a nice day!
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
So the change to staff_tn in the function has affected the thumbnail size used in the recent blog posts widget. It appears these use the same size...can this be edited using a child theme?
http://77.104.156.249/~phaneuf9/
Hello Janna,
Yes, some other part use the staff_tn thumbnail size too.
Yes, you could rewrite the shortcode or ajax-handlers function in your child theme functions.php, this will overwrite the main theme functions and you will be able to change everything you want.
Are you using the classic or load more navigation?
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
I am using the Recent Blog Posts widget from visual composer and have limited the posts to 4, used blog style 3 and selected "no navigation"
Trying to find what file/code controls this and rewriting it so it doesn't use the staff thumbnail size might be quite a bit beyond me.
Can you point me in the direction of what file or files I should look at to try to write the new function?
I just added:
.rp_type03 .post-attachement {max-height: 170px;}
And let the thumbnail overflow be hidden...i couldn't figure out what to edit in the core file, forget about writing a new function in the child theme.
Hello Janna,
If you use the no navigation mode, then go to the main theme file and go to
thefox/functions/rd_shortcodes and open the rd_recent_blog_posts.php
then copy all the content except the first line ( <?php )
and the last line ( ?> )
and paste it into your child theme functions.php
Then search for staff_tn and replace it by the thumbnail you size you want to use.
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