Hi,
How to I add this post reaction on my child theme?
https://www.screencast.com/t/EQNdvceS
<div class="sharethis-inline-reaction-buttons"></div>
Thanks,
Hi,
I believe that needs to be entered in the post page. Then the code has to be entered in the post template files. Each post template has a corresponding loop-single file (Ex: post template 2 -> loop-single-2.php)
The post template files are located in the main theme folder. Edit the post template you wish and enter the code in the structure, where you would like it to appear
– https://www.screencast.com/t/CAWfrL3b
These files can be edited through a child theme
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks
Hi,
Try entering in the mobile theme post template, there is only one post template for mobile
– https://www.screencast.com/t/X67Tukf33oe
Enter it there and check the results.
Thanks
Thanks Simion,
I want to share this:
Plugin: Sharethis
MOBILE
Newspaper/Mobile/Single.php
<?php
/**
* Created by ra.
* Date: 10/23/2015
*/
global $post;
//increment the views counter
td_page_views::update_page_views($post->ID);
get_header();
if (have_posts()) {
td_global::load_single_post($post);
$td_mod_single = new td_module_single_mob($post);
?>
<div class="td-container">
<!-- breadcrumbs -->
<div class="td-crumb-container"><?php echo td_page_generator_mob::get_single_breadcrumbs($td_mod_single->title); ?></div>
<!-- post content -->
<?php the_post(); ?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class());?>" <?php echo $td_mod_single->get_item_scope();?>>
<div class="td-post-header">
<?php echo $td_mod_single->get_category(); ?>
<header class="td-post-title">
<?php echo $td_mod_single->get_title();?>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-post-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<div class="td-module-meta-info">
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_comments();?>
<?php echo $td_mod_single->get_views();?>
</div>
</header>
</div>
<div class="td-post-content">
<?php
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
echo $td_mod_single->get_image('td_696x0');
}
?>
<?php echo $td_mod_single->get_social_sharing_top();?>
<?php echo $td_mod_single->get_content();?>
</div>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<div class="td-post-source-tags">
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_the_tags();?>
</div>
<div class="sharethis-inline-reaction-buttons"></div>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>
</article> <!-- /.post -->
<?php echo $td_mod_single->related_posts();?>
</div>
<?php
} else {
//no posts
echo td_page_generator_mob::no_posts();
}
comments_template('', true);
get_footer();
View: https://www.screencast.com/t/2ROxmtWBLp3
DESKTOP
CODE: https://www.screencast.com/t/w90uht8VYV
VIEW: https://www.screencast.com/t/f9AA6yEOin