buster808 Posted June 19, 2019 Share Posted June 19, 2019 Hi, Im trying to ad the following in my template but it will only render text but works fine in _main.php but this will output across whole site. Thanks $content .= "echo $modules->MarkupSocialShareButtons->render();"; Link to comment Share on other sites More sharing options...
buster808 Posted June 19, 2019 Author Share Posted June 19, 2019 This works fine now on _main.php <?php if($page->template->name === 'blog-entry'){ echo $modules->MarkupSocialShareButtons->render(); ; } 1 Link to comment Share on other sites More sharing options...
dragan Posted June 19, 2019 Share Posted June 19, 2019 2 hours ago, buster808 said: $content .= "echo $modules->MarkupSocialShareButtons->render();"; I have never used that module, but I guess it should be: $content .= $modules->MarkupSocialShareButtons->render(); 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted June 19, 2019 Share Posted June 19, 2019 @buster808 Can you please use the code blocks provided by the forum instead of copy pasting directly from your editor into the post. It's really hard to read the way they're right now. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now