-
AuthorPosts
-
December 21, 2014 at 12:21 am #371101
Hello,
One of the default blog post that came with the theme has “Share Links” on the bottom of the post. I went to Enfold-Child -> Blog Layout and disabled a few of these share links (only displaying Facebook, Twitter and Google+). But when I created a new blog post and published it, I noticed it did not have the “Share Links” on the bottom of the post.
Am I looking at the wrong places? Any advice is greatly appreciated!
December 21, 2014 at 12:39 am #371103Hi!
This may be happening because you’ve activated ALB on Posts, add this to functions.php to force it to show on template builder posts;
add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1); function avia_add_social_toolbar_template_builder($content = "") { $content .= avia_social_share_links(array(), false); $content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>'; return $content; }Regards,
JosueDecember 21, 2014 at 1:46 am #371113Awesome, that did the trick!! Is there a code to get the comments there as well?
*Edit* It’s actually showing on every page as well, is there a way to only display it on blog post? If not, it’s no big deal, I can live without it!
-
This reply was modified 10 years, 10 months ago by
stewroids.
December 21, 2014 at 4:44 am #371142Hey!
Use this instead:
add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1); function avia_add_social_toolbar_template_builder($content = "") { if(is_singular('post')) $content .= avia_social_share_links(array(), false); $content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>'; return $content; }Regarding comments you’d need to use the Comments element from ALB (Content Elements).
Cheers!
Josue -
This reply was modified 10 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
