LinePlaneVolume
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Restaurant Menu Manager] Multiple Sizes For An ItemAnd, same question for adding a sub-category.
Example:
Beverages
__________Small___Medium___Large
Coffee_____$x.xx___$x.xx_____$x.xx__________12oz___16oz
Soda______$x.xx__$x.xx__________12oz___22oz
Beer______$x.xx__$x.xxForum: Fixing WordPress
In reply to: Image carousel x4 – How to?I’ll check it out! Thanks for the suggestion.
Forum: Plugins
In reply to: [Slideshow Gallery LITE] only first 2 slides workingHaving a similar problem, but I get 3 before it stops cycling.
Forum: Fixing WordPress
In reply to: Hacked/Malware, need help pleaseOne of the sites I’m working on was just hacked as well, and had the same “nemonn” class in the header. I deleted the theme folder and re-uploaded the local version and that did the trick, for now. I backed up the hacked theme folder so I can do a little more digging.
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesAnd this is the sum of the css to take care of all of the classes thrown by the $classes funtion… perfect! I’m sure there’s a more elegant way to just do this with one class, that scales with changes, but I’m pretty happy with this solution.
.portfolio li#menu-item-153 a { color: #d9531e; } .products li#menu-item-152 a { color: #d9531e; } .about li#menu-item-151 a { color: #d9531e; }Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesOK, here’s what I did and it works perfectly…
1) I added the default codex function for body class to the functions.php file
// add category nicenames in body and post class function category_id_class($classes) { global $post; foreach((get_the_category($post->ID)) as $category) $classes[] = $category->category_nicename; return $classes; } add_filter('post_class', 'category_id_class'); add_filter('body_class', 'category_id_class');2)
I added this to the header body tag
<body <?php body_class( $classes ); ?>>3)
This is the style (added to style.css) for the example page I listed at the beginning of the post. It will work on any post, which has been given the “portfolio” class and the “menu-item-153” ID…
.portfolio li#menu-item-153 a { color: #d9531e; }Now, I will just to add 2 more styles to cover the other links in the main nav and it should work like a charm.
esmi, in this case, I think I had too many variables for your function to work with my limited interpretive skills. The default $classes function may be a broader, simpler, brush that does the trick in this case.
Thanks for all the help, WPyogi and esmi!!!
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesesmi,
Do I replace ‘foo’ ‘bar’ or ‘wibble’ with any real names?
Sorry, but I’m a code caveman.
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesesmi,
Looking through your function now. I’m going to give it a shot. Thanks!
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesOK, I think I see how this will work. It’s throwing useful stuff into the body tag now.
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesRight now, it’s just regular old
<body>
I’ll add the body class in. I just placed the add category function into the function.php file, too.
Thanks for the compliment, but I’m only doing dev on this site, so it’s not my design.
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesOh crud… Now I remember the problem with styling the menu-item is the style (which main nav item is styled) will vary depending on category. So, I will study body_class more and maybe I can assign by category.
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesI will definitely avoid any javascript. In the end, for now at least, I’ll probably just style the menu-item. My WordPress theme-fu is still pretty low level.
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesI definitely need to wrap my head around the implications of that one (body_class)! 🙂
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesYeah, I guess I wanted to try to figure out a more elegant solution, like automatically attaching a single class to whichever was the appropriate one, but that will definitely do the trick. Thanks for the most practical reminder!
Forum: Fixing WordPress
In reply to: Highlight main navigation link in sub pagesThanks for the response. I spent a bit of time trying to get it to throw a unique class into the appropriate main nav item, but have had no luck so far (I’m more designer than coder, so this will be a struggle on my own). I’m definitely on the prowl.