Tagged: php, shortcode, social icons
-
AuthorPosts
-
November 15, 2016 at 1:12 am #712249
I am having an issue finding where to place this code in order to place social icons on the bottom instead of the default enfold theme has. I am using an addon to do it and it kicks out shortcodes.
I know this can can used to get the social icons on the site but not sure where to place this.
<?php echo do_shortcode('[aps-social id="1"]')?>November 15, 2016 at 1:19 am #712255Hey ninjaunmatched!
Please go to Enfold theme options > Footer and check “Social Icons”.
If that does not help, please post a screenshot showing the changes you would like to make. You can upload your screenshots on imgur.com or Dropbox public folder and post the links here.Cheers!
YigitNovember 15, 2016 at 1:25 am #712260The addon adds social icons by shortcode I just want to place those using the code I posted to the bottom of every post without having to paste some shortcode into every post
November 15, 2016 at 1:27 am #712261This is the addon..
November 15, 2016 at 7:29 am #712349Hi,
You should add it it footer.php (in the theme file), but I suggest you use a child theme (check this thread on using Enfold’s Child theme: http://kriesi.at/documentation/enfold/using-a-child-theme/ ). Can you post a screenshot where you want it to be placed so we can know where you should place the shortcode in footer.php.
Best regards,
NikkoNovember 16, 2016 at 1:39 am #712687Sure… Trying to replace the default sharing section in the enfold theme.
November 16, 2016 at 5:00 pm #713037Hi,
Please edit enfold/includes/loop-index.php file and find
avia_social_share_links();and replace it with
echo do_shortcode('[aps-social id="1"]')Best regards,
YigitNovember 17, 2016 at 10:43 pm #713756Okay cool… The stupid addon wont post anywhere anyways…. Thanks for the response. I will use default for now… I am running into another issue with blog format…. Will ask in another post
November 17, 2016 at 11:37 pm #713762 -
AuthorPosts
- The topic ‘PHP shortcode’ is closed to new replies.
