• 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 13 replies - 16 through 28 (of 28 total)
  • Ok, so your sidebar.php file isn’t being used

    Can you see this;

    <div id="right">
    		<div id="next_step">
    			<div id="padding">
    				<div id="title">Just For New Patients</div>
    				<div id="text">
                                    <p>&nbsp;</p><p>
                                    <a href="/clear-path-back-to-mobility">
                                    Your Clear <br>
    				Path Back  <br>
    				To Mobility  <br>
                                    >>> </a>
    				</p></div>
    			</div>
    		</div>
    		<a href="/just-for-medical-practioners">
    		<img src="http://www.evergreenprostheticsandorthotics.com/wp-content/themes/evergreen/images/medical.jpg" alt="Just for Medical Practitioners">
    		</a>
    		<a href="/forms/"><img src="/images/insurance.gif" alt="Insurance Questions?" style="position:relative;top:-135px;"></a>	<a href="http://www.facebook.com/Evergreenpo"><img src="http://www.evergreenprostheticsandorthotics.com/wp-content/uploads/facebook.jpeg" alt="find us on facebook" title="facebook" width="180" height="68" class="alignright size-full wp-image-1003" style="position:relative;top:-125px;"></a>  
    
    ====== PASTE THE TWITTER CODE HERE ======
    
    			</div>
    Thread Starter Melissa Sexton

    (@melissa-sexton)

    where is that code located?

    Most likely in your page.php file… It’s your sidebar.

    Do you have a separate homepage file somewhere? It may also be in there.

    I copied that from the source code off your homepage, so it’s definitely there somewhere 🙂

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    okay im still trying to find it. I found this is the single.php file..

    </div>
    	<div id="right">
    		<div style="height:24px;background-image:url(<?php bloginfo('template_directory'); ?>/images/right-content-top.gif);"></div>
    		<div style="width:287px;background-color:#24383D;">
    			<div style="padding:10px 15px;">
    				<?php get_sidebar(); ?>
    			</div>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    The single.php page is for single blog posts

    Use this to work backwards to identify which file it might be in

    http://codex.wordpress.org/File:Template_Hierarchy.png

    That said, you’ve found the correct section, you just need to find it in the correct file.

    You may have a /page-templates/ folder, or a home.php , homepage.php front-page.php, page.php, etc… Just depends on the theme.

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    I think i’ve looked in every folder… I will find it eventually. When I find it what are the next steps?

    If you’re adding in the Twitter Widget, just copy and paste the code in before the </div> that corresponds to the <div id="right">

    I’ve shown the placement in a previous comment above.

    Is there anything else you’re trying to add in?

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    Yes I am trying to add a Pinterest Widget or Button, a Linked In button and a Healthgrades button if it is even available

    It’s all possible, you just need to find where it all goes!

    Have you worked out what template file your homepage is using yet?

    Log in to WordPress, then go to the editor page for the home page. Then on the right hand side it will tell you the Template name (under the publish button box)

    From that, it might indicate what PHP file you need to look in, but they don’t necessarily have to follow the same naming patterns…

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    Im not sure there are a lot of templates..(I listed them below)
    Templates

    404 Template
        (404.php)
        Archives
        (archive.php)
        Archives Page Template
        (archives.php)
        Comments
        (comments.php)
        Footer
        (footer.php)
        Header
        (header.php)
        Image Attachment Template
        (image.php)
        Links Page Template
        (links.php)
        Main Index Template
        (index.php)
        Page Template
        (page.php)
        Popup Comments
        (comments-popup.php)
        Search Results
        (search.php)
        Sidebar
        (sidebar.php)
        Signup Page Template
        (signup.php)
        Single Post
        (single.php)
        Theme Functions
        (functions.php)
        Videos Page Template

    It should be in page, and if not, index!

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    I found the code I was looking for in the Footer.php

    If I want to add all of the buttons I mentioned do I just put them where you said to put the Twitter?

    Thread Starter Melissa Sexton

    (@melissa-sexton)

    I was able to add a larger Twitter buttom however I just tried to put a pinterest widget and nothting happened I put the code right after the twitter code

Viewing 13 replies - 16 through 28 (of 28 total)

The topic ‘Cant find code’ is closed to new replies.