WordPress.org

Forums

[Plugin: Social Bookmarks] Anyway to make plug in not render a title tag? (2 posts)

  1. Michael
    Member
    Posted 6 years ago #

    I like the plugin very much, I am using it without the AJAX interface. My only complaint is that I'm having trouble styling it. It creates a wrapper div that is way to big. I made the plug-in not render a display title by entering &nbsp but I'm still not satisfied with the output. Examining my source code this is what I get:

    <div class="social_bookmark">
    <a><strong><em> </em></strong></a>
    <br />
    <div class="d">
    <br />
    ** ALL SOCIAL LINKS ARE HERE **
    <br />
    </div>
    </div>
    <!-- Social Bookmarks END -->

    I would like to make the plug in not render the first A tag and all of the break tags. Is there anyway to do so. I tried to do it in CSS by setting display:none on a.social_bookmark but that did nothing.

    Any suggestions?

  2. yulingo
    Member
    Posted 6 years ago #

    The only way to absolutely remove all the tags is to roll up your sleeves and do some PHP editing. However, it's really quite simple. Go to the plugin's folder and open social_view_public.php. As you scroll down, you will see the function that actually renders the code:

    function render_plugin()
    {
        ...
    }

    Now, in this function, you'll see some php that looks like this:

    $html .="html markup here"

    You'll notice that the html markup of the function corresponds to your source code. Now you can edit and tweak the classes and remove any unwanted breaks.

    I believe that if you can't directly access the folder where the plugin's files are, you can go to the plugins page of the admin panel and find a link to edit the plugin.

    Cheers.
    `

Topic Closed

This topic has been closed to new replies.

About this Topic