Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #17218


    I had a thread over at (Purchase code hidden if logged out) -woocommerce?replies=1#post-78584 and it was indicated that the Menu Walker Class was in need of an update. It seems the thread is closed and I can’t comment anymore.

    Is there an update on this? I’m stalling with the client. I’ve made other mods to the code so a “full on” update would be more of a pain for me to implement than just knowing the files that need to be updated?

    Any insight would be most helpful.



    Kriesi didn’t update the theme framework yet and I’m not sure if or when he’ll update the menu walker class.If you’re in a hurry can try “hacks” like: (Purchase code hidden if logged out)(Purchase code hidden if logged out)(Purchase code hidden if logged out) -wordpress-menu/




    Thanks for the update. I’m not sure the hack helps much as it’s for the dynamic pages woocommerce is generating based on the products, not a “custom link” as I understand it to be in the navigation. I’ll try to stall the client further.


    Hey kork,

    I believe Peter is suggesting to use it in your main nav if you wanted to highlight a specific grouping or something like that.

    An additional hack would be to use the page-id-#### class that gets added to the top ID to create specific css to highlight the current page item. This would be a lot of additional css because it would need to be done for individual pages but if you have a small number of items and need to get that functionality without writing your own php its the only way I can think of.




    Unfortunately, with the intent to have 400 products across a number of categories at launch, it’s not likely going to help much.



    Peter and Devin are correct. There is no need to add 400 blocks of css though. Create an inline css block and use the postid via php for the selector name that will match the post-id-#### you will be adding with the hack. This way the css will only hit when you want it, since I am guessing it will be the same style for all 400 pages. Though I never tried this with WordPress , I don’t see why it wouldn’t work.

    $thePostID = $wp_query->post->ID;// .or $post->ID. or get_query_var()
    echo '<style type="text/css">.page-id-$thePostID {...some css..}</style>';

    Play around with it. I am certain there is an easy way to do this with jquery as well.



Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Menu Walker Class and Woocommerce update?’ is closed to new replies.