Support » Fixing WordPress » Cant find code

  • Hello,
    I am in the process of editing a wordpress site I did not create. There is a Twitter follow button located on the home page but I cant seem to find the code anywhere in the theme. I would liked to replace the button with a different one, Please help!

Viewing 15 replies - 1 through 15 (of 28 total)
  • its usually a plugin so it should be in the plugin folder. or best way to search for any part of code is to use firebug in firefox or chrome.

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    It is not in the Plugin folder…

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    I tried using firebug and it said it was a widget but I looked in the widget folder and it was not there…

    Can you replicate the problem using the default Twenty Thirteen theme with all plugins deactivated?

    widgets if you cant find under appearance. then you need to go via your themas function.php file it must or usually there depending on theme structure.

    to increase your chance of getting any useful suggestions, please post a live link to your site where this twitter button can be seen.

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    Im not sure if I can do that.

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    http://www.evergreenprostheticsandorthotics.com/

    twitter button is on bottom right hand corner

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    there is nothing about the twitter button in my themes function php file

    Hi Melissa
    It’s a ‘widget’, but it’s a twitter widget, not a WordPress widget.

    In your footer.php/sidebar.php there will be some code that looks like this:

    <a href="https://twitter.com/EvergreenPandO" class="twitter-follow-button" data-show-count="false">Follow @EvergreenPandO</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

    The JavaScript renders the normal <a> anchor link into a Twitter Follow button once the page has finished loading.

    Just remove or edit that as appropriate.

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    I found the code thank you! Should I just remove and put another code in its place?

    Yeah, well, whatever you want really!

    Twitter buttons can be generated here; https://twitter.com/about/resources/buttons

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    Okay I tried to download a Twitter Widget (mini Feed) and it is not showing up on the page. I think the way the Theme is coded the sidebar is not showing up for some reason when I add things to it.

    Does your page.php (or whatever template you use) include this text?

    get_sidebar();

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    No it does not there is a get_header(); ?> and <?php get_footer(); ?>

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘Cant find code’ is closed to new replies.