shamican
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [OceanWP] How to display Menu Description under Main MenuFor now I added it myself using the code I posted above, I just wish it was built in or maybe it is but I couldn’t find the option. This can be consider solved for now as I manually did it.
Forum: Themes and Templates
In reply to: [OceanWP] How to vertically Align the Main Menu to Top ?NVM i found how to do it.
Forum: Themes and Templates
In reply to: [OceanWP] How to display Menu Description under Main MenuAlso to clarify I am talking of Menu description not Category description which is different. See this screenshot :
- This reply was modified 5 years, 10 months ago by shamican.
Forum: Themes and Templates
In reply to: [OceanWP] How to display Menu Description under Main Menu@abhikr781 have you read my post above ? I already have the description I want to display them under each menu on pages, please read my post above and check the screenshots to understand.
Forum: Themes and Templates
In reply to: [OceanWP] How to display Menu Description under Main MenuHere is the screenshot of how description shown by another theme
As I did not found any option in OceanWP, maybe it is somewhere hidden. I searched a found an old page date 2015 on how to do it with adding code to finction.php :
function prefix_nav_description( $item_output, $item, $depth, $args ) { if ( !empty( $item->description ) ) { $item_output = str_replace( $args->link_after . '</a>', '<span class="menu-item-description">' . $item->description . '</span>' . $args->link_after . '</a>', $item_output ); } return $item_output; } add_filter( 'walker_nav_menu_start_el', 'prefix_nav_description', 10, 4 );And CSS in custom CSS :
.menu-item-description { display: block; }However this break the alignment, and I don’t know how to fix, author put a CSS code to top aligned the Menu but it doesn’t work :
Screenshot of how it break the alignment :
https://ibb.co/kD70xfyHere is full link to the Guide : https://themefoundation.com/menu-item-descriptions/
I just hope that the option exist already in OceanWP otherwise I will need some help to fix the alignment of Menu and also change font style, color … of Menu Description.
Thanks for your help 🙂
- This reply was modified 5 years, 10 months ago by shamican.
Forum: Themes and Templates
In reply to: [OceanWP] How to display Menu Description under Main MenuThere is a Box called Description under the Menu option. Some Themes let you show that description just under the Menu. As my store is about clothing I was showing the Sizes.
My Menus are Baby Boy, Toddler Girl, Boy …
So under Baby i have added Nb-24M in Description of that Menu. The theme i was using was letting me display that info under each Menu. (i can post screenshot if it is not clear)I have found a code (posted in 2015) to add to themes that doesn’t support this but I am surprised the big theme like OceanWP doesn’t have such option. Even the basic twenty twelve theme have it since 2015.
If no such Option exists for OceanWP then i will manually add the code which works I tested it locally but I know nothing about CSS and i will need help to correctly align it.
Thanks for your help 🙂
Nvm I was able to find the source of problem. It was some corrupt jpg images. I just reconverted them and did regenerate thumbnails in tools and for now it is working 🙂
Forum: Themes and Templates
In reply to: [OceanWP] Problème de menu mobileIl faut aller dans Appearance > Header > Mobile Menu, Trouver l option Dropdown target puis selectionner “ICON” au lieu de “LINK”
Forum: Fixing WordPress
In reply to: Wrong hightlighted current active category menuthanks for the reply, site is not live but i can turn it on for testing if you need to look in it.
Yest most probably it is theme as when i change to another theme it has no more the bug. But it is strange they did not fixed it since a month. I updated to latest version and the bug is still there. It is really strange as no one talking about this bug on theme forum. I will ask them lets see. (betheme)
But do you have any tip what to look for if I need to fix it myself ?