Tagged: ismael
Hi,
In my single post page, I would like to have three columns with widgets displayed just under the header. I understand that I need to modify the single.php file for that. I have a few questions:
Thanks in advance!
Regards,
Steven
Hey steviger,
1.) Yes, you can copy single.php to your child theme and you don’t need to add anything in functions.php to make it work. This is how wordpress uses templates for single post page, it looks for single.php in the child theme, if it can’t find any, it will check the parent theme for it, so since single.php of the child theme is prioritized it will be used instead of the one in the parent theme.
2.) I tried to check the link of the site that shows the 3 columns however I am getting this (I just replaced the url):
This site can’t be reached
www.domain.com’s server DNS address could not be found.
Can you try to give us a screenshot instead? you can upload the screenshot to imgur.com and post the link here. :)
Best regards,
Nikko
Hi Nikko,
Teh extension wasn’t right. Please see the correct address in de PC.
Cheers,
Steven
Hi,
Get the actual shortcode of the 3 columns then use it as the value of the do_shortcode function inside the single.php file, just above this line.
get_template_part( 'includes/loop', 'index' );
// https://developer.wordpress.org/reference/functions/do_shortcode/
Best regards,
Ismael