Hi… I am using Ethos 1 template. In single post, I am not seeing all the social icons which will be used for sharing across social channels. How do I enable it?
Hi Abhinav,
Thanks for writing in. To achieve that, you need to install an x child theme, here’s a link that should help you set it up. https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57
After that add this php code in your child theme’s functions.php.
// Add Social Sharing after the single post content
// =============================================================================
function x_add_social_sharing ( $content ) {
if ( is_singular('post') ) {
echo do_shortcode('[share title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
}
}
add_action('x_before_the_content_end', 'x_add_social_sharing');
Hope it helps.
Hi. When I tried to install the child theme. I get the following message even though I have installed the X theme.
Installing Theme from uploaded file: x-child (1).zip
Unpacking the package…
Installing the theme…
This theme requires a parent theme. Checking if it is installed…
The parent theme could not be found. You will need to install the parent theme, x, before you can use this child theme.
Theme installed successfully.
Return to Themes page
Hello Abhinav,
You are seeing this message:
Installing Theme from uploaded file: x-child (1).zip
Unpacking the package…
Installing the theme…
This theme requires a parent theme. Checking if it is installed…
The parent theme could not be found. You will need to install the parent theme, x, before you can use this child theme.
This is all because you have renamed the x folder into x-704. As soon as your renamed the folder back to x, you will no longer see that error message.
Best Regards.
Thank you so much. It worked.
You are most welcome!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.