WordPress.org

Ready to get started?Download WordPress

Forums

Image and text alignment (8 posts)

  1. davestinner
    Member
    Posted 9 years ago #

    I've searched and I can't seem to find the answer. I just upgraded my site to WP 1.5. I'm using the trident theme. I can't seem to get the link category headings to align left like the other headings in my menu. Secondly, in the right menu I have a Google Search and Google AdSense. They want to align left instead in the center, where I would like them to be. Thirdly, the right menu I have set for a width of 150px. No matter how big I make it, the Google Search doesn't want to fit correctly. It'll either run off to the right or over to the left into the post area.
    My site is located @ http://www.stinner.com/ and the theme is in the default location @ http://www.stinner.com/wp-content/themes/trident

  2. dissurion
    Member
    Posted 9 years ago #

    Your link category headings are styled with h2. The others are not. That's a possible cause.

  3. davestinner
    Member
    Posted 9 years ago #

    I tried assigning text-align: left; to h2 in the style.css file.

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Right menu first.
    There is no css for it as yet, so we need some.

    Drop into the bottom of your css
    #rmenu ul li#ads {
    text-align:center:
    }

    Now in sidebar.php, just above the ads do this

    <li id=ads">
    then put
    the ad
    code
    here
    </li>

    That should center it.

    I'll look at the other stuff.

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    The stuff that won't align - you've actually got a <h2> tag around those in your code .... that needs to go.

  6. davestinner
    Member
    Posted 9 years ago #

    I'm assuming you're talking about the <h2> tags around the link category headings. How do I remove them? They're put there by <?php wp_list_pages(); ?>
    <?php get_links_list(); ?>

  7. dissurion
    Member
    Posted 9 years ago #

    I don't know how to remove the h2 tags, but you can try to style them using
    h2 {
    display: inline;
    }

    I think that then they'll display as you won't it.

  8. markwht
    Member
    Posted 7 years ago #

    i've inserted my google adsense like this:

    <li id=ads">
    <script type="text/javascript"><!--
    google_ad_client = "pub-8125680449311930";
    google_ad_width = 120;
    google_ad_height = 600;
    google_ad_format = "120x600_as";
    google_ad_type = "text_image";
    google_ad_channel = "";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "3D81EE";
    google_color_text = "B3B3B3";
    google_color_url = "008000";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    But still, i don't get it align.

    http://www.markkie.com

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.