Forum Replies Created
-
AuthorPosts
-
bburroMember
It looks like what I want is more like the version on your revisited page, except I want default to be NO SECONDARY NAV.
What variable are you passing as Menu1, Menu2? Is that the ID?
How do I assign multiple page IDs? separate them by a comma?
How do I default to where if none of the IDs I have selected, then no secondary nav?The following is the code from your site I am referring to, just to make sure we are on the same page.
Thanks again!
//* When a new page is selected from the primary menu, //* execute the change_secondary_menu function add_action( 'template_redirect', 'change_secondary_menu' ); function change_secondary_menu() { //* Do nothing if menu not supported if ( ! genesis_nav_menu_supported( 'secondary' ) ) return; add_filter( 'wp_nav_menu_args', 'choose_secondary_nav_menu' ); } function choose_secondary_nav_menu( $args ) { if ( $args['theme_location'] == 'secondary' ) { //* default secondary menu $args['menu'] = 'Menu1'; if( is_page( 37 ) ) { $args['menu'] = 'Menu2'; } if( is_page( 39 ) ) { $args['menu'] = 'Menu3'; } } return $args; }
bburroMemberMy coding skills are meager at best. One of the menus I want to use has an ID of menu-hydrovac-menu.
What would the code be to use that menu on pages with IDs of 1,4 &5?
I can take that and create the other blocks.
Also, what would the last part be that says "otherwise don't display a secondary menu"?
Thanks again for the help!
bburroMemberVictor- I was looking at the revisited version of your page and my coding skills weren't up to connecting the dots.-
Let me give this one a go. Thanks!
bburroMemberThank you for your response. I changed it. Thank you.
bburroMemberI thought so- I mean I saw the "Portfolio" staring at me. Just never used it. What is the difference between a portfolio and an image gallery?
#googlingit
Thanks!
bburroMemberBrad- so the featured page widget is referring to a pages that Go "Title" (h1) then a full-width image beneath that, followed by a sub title (h2) then the paragraph. The widget pulls the first however many character you specify from the post.
So, basically my sub-title flows right into my paragraph.
I may just have to add a colon after the h2 tag. I was hoping there was a way to make them bold-- I guess that requires a filter...?
Thanks again.
bburroMemberHey Victor- thanks for your reply. It looks like my W3 Cache Plugin is the culprit. Thanks.
bburroMemberIt took me a minute-- but I found it...
I tried to mark the thread as resolved. Thanks!
bburroMemberFair enough. Another question-- why isn't my menu sticky like it is in the demo?
bburroMemberVictor-- Thank you for your help. I understand what you are saying with the pseudo elements-- what I am trying to remove is the border-bottom attribute that follows each widget in the sidebar. After adding the 'remove markup' snippet you shared with me, I see that this can also accomplish my goal for the sidebar widgets (once I find the right snippet)-- it removed the border attribute from the bottom of each post, which is something I also was trying to do.
Having said that, the "filed under XXXXX" element is still showing up after each post, which is my final objective. What am I missing?
Once again, thank you so much for your time!
I can remove the CSS from the live site that is hiding these elements if that will make things easier.
--Blake
bburroMember@braddalton-- That looks like an awesome plugin. Thanks!
bburroMember@Porter--
Boom. You tha man!
Learning hooks- so that was the problem-- I was "hooked" into the wrong location, right?
So it's
what_to_do( 'heres_my_hook', 'heres_the_part_of_the_hook_I_want_to_modify', no idea);
I will go back and review their tutorial. This is essential!!
Thanks again for your help!
bburroMemberI am building my site on localhost, so link is not available at this time...
Thanks!
bburroMemberBrad- I have a website I would like to get your feedback on. I am looking for someone to help me- on this and future sites- to help me "tighten up" the details.... Things like cross-platform rendering issues, plug-in rendering issues, etc.
I would love to know what you would charge- I see you offer support for $47 a month.
My email is [email protected]
That is the first site I would like you to look at. My main concern is cross-device user experience. It is built on the Genesis framework, and I am using a slider plug-in on my home page. Wondering what you think, changes you would make, etc.
Thanks for helping!
-Blake
bburroMemberThanks for the tip! I was going to copy the CSS for that class and create a rule for that particular menu ID. Your way is much better- considering I was unaware of the breadth of the "Screen Options"
Awesome!!
bburroMemberWow. I figured out that the discrepancy was due to the admin bar at the top when you're logged into wordpress. I learned on Joomla so I'm not familiar with all the intricacies yet...
Thanks!
bburroMemberbburroMemberHere is the them header code:
.site-header { background-color: #000; left: 0; position: fixed; top: 0; width: 100%; z-index: 999; }
Here is my custom CSS:
/* decrease content padding on devices 1024px and wider */ @media screen and ( min-width: 1024px ) { .full-width-content .content { padding: 0 100px 25px } } /* site-inner */ @media screen and ( min-width: 980px ) { .site-inner {margin-top: 100px} } @media screen and ( max-width: 979px ) { .site-inner {margin-top: 10px} } /* hide tab images 374px and smaller */ @media screen and ( max-width: 374px ) { #slidetabs_670 img {display: none} } /* site header */ .site-header {background-color: #fff} /* site header info */ #text-5 h4 {color: #000; font-size: 27px; margin: 0} #text-5 .textwidget {margin: 0} /* main nav */ .genesis-nav-menu {line-height: 0} /* sticky */ .nav-primary {width: 100%; position: fixed; max-width: 1140px; z-index: 999} /* main content top-padding */ .full-width-content .content {padding-top: 10px} /* Menu Links link --> visited --> hover --> active */ /* a */ .parallax-pro-blue a {color: #1321D7} /* current item and hover */ .parallax-pro-blue .entry-title a:hover, .parallax-pro-blue .genesis-nav-menu a:hover, .parallax-pro-blue .genesis-nav-menu .current-menu-item > a, .parallax-pro-blue .genesis-nav-menu .sub-menu a:hover, .parallax-pro-blue .genesis-nav-menu .sub-menu .current-menu-item > a:hover, .parallax-pro-blue .home-odd .featured-content .entry-title a:hover, .parallax-pro-blue .site-footer a:hover, .parallax-pro-blue .site-header .widget-area a:hover {color: #FFCC40} /* hide headings */ .hide {font-size: 1px; color: #ffffff;} h1.entry-title {font-size: 1px; color: #FFFFFF; margin: 0} .entry-header::after {display: none} /* tabs */ .spaced-horizontal .st_views .st_view_active .st_view_inner {padding-top: 20px} #slidetabs_670 .st_views {font-size: 18px; line-height: 20px; border:5px solid #0785CF} #slidetabs_670 .st_tabs ul li a {font-size: 14px; font-weight: bold; background: none repeat scroll 0 0 #6ABDEF; color: #000; border-top-color: #6ABDEF} #slidetabs_670 .st_tabs ul li a:hover {background: none repeat scroll 0 0 #1F97DE; color: #FFF; border-top-color: #1F97DE} #slidetabs_670 .st_tabs ul li a.st_tab_active {background: none repeat scroll 0 0 #0785CF; color: #FFF; border-top-color: #0785cf} .st_view_inner h1 {color: #0785CF; font-size: 30px; letter-spacing: -2px; border-bottom: 1px dotted #0785CF;} .slidetabs p {margin-bottom: 15px} .slidetabs ul {margin-bottom: 20px} /* columns */ p.line {border-bottom: 1px solid #0785CF; padding-top: 20px} div.one-half {text-align: center} div.one-half .button-column {border-radius: 10px; padding: 15px; background: yellow; color: #000; border: 1px solid orange;} /* pricing tables */ .content-box-green {padding: 20px 0 0} table {line-height: inherit; margin-bottom: 0} th {border-bottom: 1px solid grey} td, th {text-align: center} /* contact form */ input, select, textarea {padding: 0;}
Please let me know if you need anything else.
bburroMemberI removed all of my custom css and the issue still exists.
Here is the header code:
<header class="site-header" itemtype="http://schema.org/WPHeader" itemscope="itemscope" role="banner"> <div class="wrap"> <div class="title-area"> <p class="site-title" itemprop="headline"> <a href="http://localhost/waco/">Computer Solution</a> </p> <p class="site-description" itemprop="description">for all your IT needs...</p> </div> <aside class="widget-area header-widget-area"> <section id="text-5" class="widget widget_text"> <div class="widget-wrap"> <h4 class="widget-title widgettitle">(254) 633.2400</h4> <div class="textwidget"></div> </div> </section> <section id="simple-social-icons-3" class="widget simple-social-icons"> <div class="widget-wrap"> <ul class="alignright"> <li class="social-email"> <li class="social-facebook"> <li class="social-gplus"> <li class="social-twitter"> </ul> </div> </section> </aside> </div> </header>
Please let me know if this isn't what you meant.
Thanks again.
bburroMemberWhen I change the top attribute it renders differently in Firefox than it does in Chrome. One needs a top of 70, the other 100. There is no margin pushing it down. I'm really confused!
-
AuthorPosts