Forum Replies Created

Viewing 15 replies - 136 through 150 (of 226 total)
  • Thread Starter befree22

    (@befree22)

    OK, I removed all of the above code from the header so now only the “About” image displays. Yes, I have to add the page for page-item-4.

    Right now, I want to know that images are displaying and aligning correctly b4 I migrate the site.

    I added the following code for the “home page and it appears to work:

    .main-navigation .current-menu-item > a,
      .main-navigation .current-menu-ancestor > a,
      .main-navigation .current_page_item > a,
      .main-navigation .current_page_ancestor > a {
        color: #636363;
        font-weight: bold;
        text-indent: -9999px;
        width: 124px;
        height: 32px;
        background: url(http://www.tmmcom.dreamhosters.com/wp-content/themes/twenty-plus-pro/images/home.gif) top center no-repeat !important;
    }

    Why is there a space between the “home” and “about” images? I do have a divider/spacer I’d like to put between the nav images. How do I do that? I added the following but it’s not working:

    li.page-item-2 a {
        text-indent: -9999px;
        width: 124px;
        height: 32px;
        background: url(http://www.tmmcom.dreamhosters.com/wp-content/themes/twenty-plus-pro/images/about-in.gif; url(http://www.themiraclemerchant.com/skin/frontend/default/miracle/images/divider.gif) top center no-repeat !important;
    }
    Thread Starter befree22

    (@befree22)

    I added the “home” image code you posted and now there are 2 “home” images displaying in the LOWER navigation menu. The “home” image belongs in the top menu, WordPress’ main aka primary menu.

    I’m repasting the header.php code here (your code included):

    </nav><!-- #site-navigation -->
            <img src="http://tmmcom.dreamhosters.com/wp-content/themes/twenty-plus-pro/images/home.gif" alt="home" />
    
       <?php $page_id=get_the_ID(); /* Add navigation imgages */
       if(is_home()) { $image='home.gif'; }
       if(is_page()) { $image='head-image-'.$page_id.'.gif'; };
       if(!file_exists(STYLESHEETPATH.'/images/'.$image)) { $image='home.gif'; } //specific image not found, use default header image set as the same as the posts page header image
       echo '<img src="'.get_stylesheet_directory_uri().'/images/'.$image.'" alt="home" />'; ?>
    Thread Starter befree22

    (@befree22)

    I’m repasted the css code showing images as bkgd images:

    css code:
    li.page-item-2 a,
    li.page-item-4 a {
        text-indent: -9999px;
        width: 124px;
        height: 32px;
        background: url(http://www.tmmcom.dreamhosters.com/wp-content/themes/twenty-plus-pro/images/about-in.gif) top center no-repeat !important;
    }
    Thread Starter befree22

    (@befree22)

    @wpyogi It works beautifully!

    I used Firefox Web Developer Tools > Responsive Design View. And you’re right about the responsive view — the top navigation links don’t appear on 360×640 or lower screens; only the search box appears. I will say that the pages do appear in the footer widget though.

    I checked the theme (without this css code) to see if it supports 360×640 and lower. It doesn’t (the top navigation links don’t appear) so I’ll inform the theme’s author because many themes support lower resolution.

    Thread Starter befree22

    (@befree22)

    I used Firebug’s Inspect Element and Web Developer’s Tools to find the code in the Twenty Twelve parent theme. On line 1393, I found the css for the nav bar positioning so I added the following code to the 2012 child theme’s custom css file:

    @media screen and (min-width: 600px)
      .main-navigation ul.nav-menu,
      .main-navigation div.nav-menu > ul {
        text-align: right;
      }

    When I use Firebug, the menu items (Home, Sample page) appear as desired — aligned on the right margin and the search box on the left margin as I want it. However, the css changes don’t appear on my browser. I experienced the same issue when I loaded the site on another computer.

    Thread Starter befree22

    (@befree22)

    I added the

    #header {
        position: relative;
    }

    I then added the position: absolute; top: 145; right: 140; to this css (see below) and the search box is now appearing inside the nav menu bar on the right margin.

    #searchform {
    	color: #fff;
    	float: right !important;
    	border: 0 !important;
            position: absolute; top: 145px; right: 135px;
    	padding: 10px;
            background: #FEC42D;
            width: 240px;
    	}

    It works, thanks to your input. Now I’d like the search box to appear on the left side of the primary menu. I used float: left; but the box never moved to the left margin. I then used this and the search box appears on the left margin but it hides the navigation pages “Home” and “Sample Page”:

    position: absolute; top: 145px; left: 135px;

    I want the search box to appear inside the primary menu on the left margin. Any other css tricks to do this? Or do I have to make a change to the code for the nav pages?

    Thread Starter befree22

    (@befree22)

    It works beautifully! Thanks so much. Here’s the css:

    /* Social media icons in header */
    #header_icons{
    float: left;
    margin-top: 0px;
    width:400px;
    }
    
    #header_icons li{
    float: left;
    margin: 5px 0px;
    display:inline;
    }
    
    #header_icons ul li {
    display: inline;
    }
    Thread Starter befree22

    (@befree22)

    The css I’m using is aligning the social media icons vertically, and I want them aligned horizontally. What the problem? Here’s the current css: http://pastebin.com/NFj2BeEu

    Thread Starter befree22

    (@befree22)

    Here’s the header.php file at http://pastebin.com/9YS1nwpm

    Thread Starter befree22

    (@befree22)

    A 2012 child theme. Here’s a demo of the theme that Zeaks created: zeaks.org/ttodemo

    Thread Starter befree22

    (@befree22)

    It works! Now I know the difference between period for class, hashtags are for id.

    Thread Starter befree22

    (@befree22)

    OK, I used this code for the date: <?php echo date('l jS, F, Y') ?>

    For the css, I added this code but the date isn’t aligning to the right of the blog page:
    `.todaysdate {
    float: right;
    color: #444;
    font-size: 20px;
    line-height: 1.625em;
    padding: 0 1.2125em;
    margin-top: 10px;
    font-weight: bold;
    }`

    It works when I use .todaysdate but not when I use #todaysdate. Thanks 🙂

    I’m using a 2012 child theme on the site.

    Thread Starter befree22

    (@befree22)

    FYI: In addition to the Form # matching, be sure that the raw javascript displays in the html page. I had added the javascript code to a .js file and added the following code on the html page:

    <script src="checkform3.js" type="text/javascript"></script>

    Thread Starter befree22

    (@befree22)

    It works!

    I doublechecked that the Form # was the same in the javascript header code and in the actual form code in the body.

    Last week, the form # was the same in both places but the form didn’t validate.

    Thread Starter befree22

    (@befree22)

    Hi guys, I’ll work on cleaning up the css errors. In the meantime, could you tell me why site isn’t loading in IE? Is it because I’m lacking the IE code in the header.php? Or is the problem related to the errors?

Viewing 15 replies - 136 through 150 (of 226 total)