• Resolved hommealone

    (@hommealone)


    In our settings options, under “Standard Interface > Placement” we have only Homepage, Posts and Pages selected.

    On our homepage, we show some excerpts from blog posts and CPT News Items (added programmatically via custom loops, and usng?the_excerpt()). Each and every one of those excerpts has a large block of code for the share icons added.

    That amounts to a lot of extra code that we don’t want. (We don’t want that to appear, so we currently have it hidden using CSS, but it would be great to be able to get that out of the code entirely.)

    Is that added to ALL excerpts by the SSS plugin? It is not added to the excerpts on our blog roll page.

    How can we get rid of it? Is there some kind of hook that we could use?

    If not, as a work-around, could we de-select Homepage from the Placement settings, and add it to our homepage as a shortcode instead – would that remove the excerpt code from excerpts that appear on the homepage?

    Any help greatly appreciated!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Heateor Support

    (@heateor)

    You can uncheck Homepage in the Placement option in the Standard Interface section at the plugin configuration page in the admin area and use shortcode to integrate the icons. Let me know if you face any issues.

    Thread Starter hommealone

    (@hommealone)

    Alright, fixed, thanks. I’m including the details of what we did, in case it might help someone else…

    I did not need to add the shortcode to the front page template; when I tried that, I had double sets of icons. It was not being added to the homepage because it was the homepage (which, in SSS Placement settings I guess refers to when the blogrole is the homepage) but because it is a “page”. We use a static page as our homepage.

    But to remove the code from each excerpt there, I unchecked Homepage (which wasn’t enough), but I also needed to uncheck Post, and add the shortcode into the single post content template instead. Deselecting “Post” from the Placement options removed the SSS sharing icons from the code of each post excerpt on our homepage, and adding the shortcode to the template made the icons appear on single post pages, which is what we wanted.

    Now we have Pages as the only option selected in the Placement options, and use shortcodes to display them everywhere else on the site where we want them to appear.

    Plugin Author Heateor Support

    (@heateor)

    No problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove SSS code from excerpts on homepage’ is closed to new replies.