WordPress.org

Ready to get started?Download WordPress

Forums

Technical Problem with Stylesheet/Template (20 posts)

  1. Anonymous
    Unregistered
    Posted 5 years ago #

    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.

  2. tsguitar
    Member
    Posted 5 years ago #

    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.

  3. Eric Amundson
    Volunteer Moderator
    Posted 5 years ago #

    . . . 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;
    }
  4. Eric Amundson
    Volunteer Moderator
    Posted 5 years ago #

    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. :)

  5. Anonymous
    Unregistered
    Posted 5 years ago #

    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.

  6. Eric Amundson
    Volunteer Moderator
    Posted 5 years ago #

    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.

  7. Anonymous
    Unregistered
    Posted 5 years ago #

    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.

  8. ClaytonJames
    Member
    Posted 5 years ago #

    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.

  9. tsguitar
    Member
    Posted 5 years ago #

    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.

  10. Anonymous
    Unregistered
    Posted 5 years ago #

    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.

  11. ClaytonJames
    Member
    Posted 5 years ago #

    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.

  12. tsguitar
    Member
    Posted 5 years ago #

    Presentation >> Theme Editor

    Post back when you find it and make the change.

  13. Eric Amundson
    Volunteer Moderator
    Posted 5 years ago #

    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
  14. Anonymous
    Unregistered
    Posted 5 years ago #

    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'); ?> */

  15. Anonymous
    Unregistered
    Posted 5 years ago #

    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.

  16. Eric Amundson
    Volunteer Moderator
    Posted 5 years ago #

    dozy,

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

    Hope that helps.

  17. tsguitar
    Member
    Posted 5 years ago #

    I don't think you're editing the active theme (I see you've now switched to the default theme, so could that be the theme you're editing and not finding H2 tags on?). Either that or you haven't found the right place where the erring code is generated. The code you provided is not the code used on the page. That LI ID is a dynamic one generated by some WP code. The LI ID you report seeing is not the one that was displaying on your site (it uses "categories" and your site was using "linkcat").

    swemyheadon, I'm just trying to fix this guy's problem, not argue over HTML semantics. For someone in a position like dozydoats, removing that H2 is the best option unless he picks another theme.

  18. Anonymous
    Unregistered
    Posted 5 years ago #

    Hi,

    I looked in all 4 themes that are present, and that is what I found in The Ex Girlfriends. The Classic and Default Themes, plus the Girls Suck Theme don't have any h2 places at all.

    However, now that I have become a bit more familiar with the admin panel, I tried out the instructions of

    #menu h2 {
    font-size:1em;
    width:auto;
    }

    from earlier, and I think it has worked, after trying it in all the themes.

    As to the update at

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

    how does that get applied after downloading?

    Thank you so much, everyone!
    dozydoats (a female :-)

  19. Eric Amundson
    Volunteer Moderator
    Posted 5 years ago #

    dozydoats,

    You'll really only need to make the CSS change in your current theme.

    The update link you list is for a much older version of WordPress. You may want to update to 2.6. Instructions are at:

    http://codex.wordpress.org/Upgrading_WordPress

  20. Anonymous
    Unregistered
    Posted 5 years ago #

    Thanks. There is something else now that the owner of the website is asking about, as follows:

    There is something I was wondering if it could be done; I would like to have a topic of discussion that people could post on and have the ex girlfriend letters be a different page that some one could go to.

Topic Closed

This topic has been closed to new replies.

About this Topic