befree22
Forum Replies Created
-
Forum: Themes and Templates
In reply to: align navigation images in primary menuOK, 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; }Forum: Themes and Templates
In reply to: align navigation images in primary menuI 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" />'; ?>Forum: Themes and Templates
In reply to: align navigation images in primary menuI’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; }Forum: Themes and Templates
In reply to: add search box in primary menu@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.
Forum: Themes and Templates
In reply to: add search box in primary menuI 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.
Forum: Themes and Templates
In reply to: add search box in primary menuI 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?
Forum: Themes and Templates
In reply to: align social media icons in headerIt 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; }Forum: Themes and Templates
In reply to: align social media icons in headerThe 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
Forum: Themes and Templates
In reply to: align social media icons in headerHere’s the header.php file at http://pastebin.com/9YS1nwpm
Forum: Themes and Templates
In reply to: align social media icons in headerA 2012 child theme. Here’s a demo of the theme that Zeaks created: zeaks.org/ttodemo
Forum: Themes and Templates
In reply to: align today's date on right marginIt works! Now I know the difference between period for class, hashtags are for id.
Forum: Themes and Templates
In reply to: align today's date on right marginOK, 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.
Forum: Plugins
In reply to: [GWA] AutoResponder form not validating on html pageFYI: 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>Forum: Plugins
In reply to: [GWA] AutoResponder form not validating on html pageIt 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.
Forum: Themes and Templates
In reply to: Adjust text width on custom page 2011 child themeHi 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?