• So, I’m pretty new to the backend of Wordpres.org but I’ve been editing this site for a few weeks now. One of the primary requests the organization has is to remove the sharing buttons that automatically load beneath each image within single posts. here’s an example. From what I can tell there’s not a plugin driving this, but I cant seem to locate it when viewing the code through Chrome or directly in the appearance editor. I’ve been able to move/remove what I think are the php lines driving some other iterations of social buttons on the site but finding what’s making these ones below the image seems to be alluding me.

    any help would be appreciated.
    best.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Are these buttons part of your theme or have they been added by a plugin?

    Thread Starter ajcalhoun

    (@ajcalhoun)

    They haven’t been added by a plugin, so I’m assuming they’re part of the theme. I’m just not sure where exactly to go to remove them as I wasn’t the one to build the theme originally.

    Arguably the best approach is to adjust the theme (or child theme), but in the absence of being able to do that I’ve found my plugin, Real-Time Find and Replace (in the WordPress Plugin Repository), to be quite helpful in such matters.

    It works by allowing you to search for HTML and then replace it with something of your choosing. In your case you’d replace it with a blank. It makes these changes as the page is being assembled, but before it is sent to the user’s browser. No theme file changes are needed. And content isn’t modified in the database so there’s nothing destructive done.

    Thread Starter ajcalhoun

    (@ajcalhoun)

    Marios,

    Thanks for your reply. The issue is, in part, I can’t seem to find in any of the code where the social buttons are coming from when they are tied to the pictures. I’ve been able to adjust the code for all other iterations of social buttons across the site.

    Oh so even when you view source of the HTML page you don’t see anything that seems related to the social media functionality?

    If so, it sounds like there’s a Javascript file/function that is iterating through the images and “activating” the social media code. I believe Pinterest scripts typically behave this way.

    Thread Starter ajcalhoun

    (@ajcalhoun)

    It does seem to work similarly to a Pinterest script.

    How do I go about accessing/moding JS functions?

    You could try adding this to your CSS to hide the icons:
    .social-image-shares {display: none;}

    I don’t see the button code if I view your page source, but I can right-click on it when viewing the page and “inspect element” to see that’s the class assigned to the buttons.

    Thread Starter ajcalhoun

    (@ajcalhoun)

    bookgirlmn,

    I’m a novice at this. I tried pasting it into the CSS stylesheet and into the PHP index but neither worked. Could you tell me more explicitly where/how to place this?

    Thread Starter ajcalhoun

    (@ajcalhoun)

    Thanks so much.
    I got it fixed!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘removing social buttons tied to images’ is closed to new replies.