WordPress.org

Support

Support » How-To and Troubleshooting » Technical Problem with Stylesheet/Template

Technical Problem with Stylesheet/Template

  • I am inquiring on behalf of a friend’s daughter. Her website is at http://www.theexgirlfriends.com — partway down the page in the right margin, the web address begins to repeat itself, and should not be doing so.

    Can anyone please tell me how to help her fix this? Someone else set up the site for her and is no longer available to help.

Viewing 15 replies - 1 through 15 (of 19 total)
  • What first occurs to me to try…

    Find this in (probably) sidebar.php:

    <!-- Link listing -->
    		<li id="linkcat-4"><h2>theex-girlfriends </h2>

    Change it to:

    <!-- Link listing -->
    		<li id="linkcat-4">theex-girlfriends

    The H2 inside the UL tag is messing things up. Getting rid of the H2 tags will clear things up.

    Eric Amundson
    Volunteer Moderator

    @sewmyheadon

    . . . and liddle lamzy divey

    I’m not sure I’m seeing exactly what you’re referring to.

    The header for “theex-girlfriends” is way off due to some funky CSS. To fix it, try adding this to the style.css file:

    #menu h2 {
    	font-size:1em;
    	width:auto;
    }
    Eric Amundson
    Volunteer Moderator

    @sewmyheadon

    Oops, I was a little late.

    I agree with TSGuitar – that should work. If you’re not sure how to do that, you can try my suggestion. 🙂

    Thank you very much for this help! Since I’ve never used WordPress, I do not know the path to get to sidebar.php — could you please tell me how to find it? I can log in to what is called the “Dashboard” but don’t know where to go from there.

    Eric Amundson
    Volunteer Moderator

    @sewmyheadon

    In the Dashboard, you can go to Design/Theme Editor. Otherwise you can FTP to the server and look for the file in the wp-content/themes/<yourthemename> directory.

    Can someone tell me the exact path to get there, please?

    I have discovered that this is version 2.6, but there is nothing there called Design/Theme Editor, at least not that I can find.

    Clayton James
    Participant

    @claytonjames

    Log in to your WordPress site. Navigate to:

    Dashboard > Design > Theme editor.

    It’s there, however you would be better advised (as sewmyheadon suggests), to edit your theme files locally (on your pc or mac or ‘nix desktop) and then upload the files back to your theme folder when done. Always, ALWAYS, keep a backup copy just in case your modifications throw you a curve you did not anticipate.

    And go for the fix I suggested. The CSS workaround sewmyheadon suggests might get you into trouble with any H2 tags elsewhere on the site. Plus, none of the other titles of lists in that sidebar are in H2 tags, so that one is clearly a mistake.

    Is it in Dashboard where it says “Change your site’s look or theme”? Otherwise, there are only the options of “Write”, “Manage”, “Links”, “Presentation”, “Plugins”, “Users”, “Options”, Import”…. but nothing that says “Design”. If it is one of those others, I cannot find anything within them which addresses this situation.

    The person whose website this is lives on the east coast and I’m trying to help her via email from the west coast. I have absolutely no access to her local files, and she cannot make any sense of them. As I said, the person who set it up for her is not available to help with this, and I have zero experience with wordpress.

    Clayton James
    Participant

    @claytonjames

    I have discovered that this is version 2.6

    <meta name=”generator” content=”WordPress 2.0.3″ />

    Look at the date on that version:

    http://wordpress.org/development/2006/06/wordpress-203/

    Item 1: in SEVERE need of an upgrade.

    …as far as your concern, I think tsguitar is right.

    The H2 inside the UL tag is messing things up. Getting rid of the H2 tags will clear things up.

    It looks like someone added this manually. Remove the h2 tags.

    Presentation >> Theme Editor

    Post back when you find it and make the change.

    Eric Amundson
    Volunteer Moderator

    @sewmyheadon

    And go for the fix I suggested. The CSS workaround sewmyheadon suggests might get you into trouble with any H2 tags elsewhere on the site. Plus, none of the other titles of lists in that sidebar are in H2 tags, so that one is clearly a mistake.

    I do think your fix is the easy way to make it consistent with what’s already in the sidebar, but I disagree on a couple points:

    1. I think these actually should be headers, since they’re section headings (arguably the others should be changed
    2. My ‘fix’ won’t interfere with any other h2 tags unless they’re in the sidebar, which is div#menu

    Thank you, tsguitar. If I’m supposed to be looking for

    <!– Link listing –>
    <li id=”linkcat-4″><h2>theex-girlfriends </h2>

    there is nothing like that in “Link listing”. Here is what it has for “Link listing” in “Sidebar”:

    <!– Link listing –>
    <?php get_links_list(); ?>
    <li id=”categories”><?php _e(‘Categories:’); ?>

      <?php wp_list_cats(); ?>

    The only place I can find <h2> and </h2> is in search.php:

    <h2 class=”center”>Not Found</h2>
    /* <?php include (TEMPLATEPATH . ‘/searchform.php’); ?> */

    Here’s another h2 place I found, in Page.php

    <div class=”post”>
    <h2 id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h2>

    In archive.php:

    <h2 class=”pagetitle”>Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>

    Other than these, I cannot find anything else with h2.

    Eric Amundson
    Volunteer Moderator

    @sewmyheadon

    dozy,

    Those h2s won’t be affected by the code I provided as their in your main content column.

    Hope that helps.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Technical Problem with Stylesheet/Template’ is closed to new replies.