• Write for us
  • Advertise with us
codinghook
  • Home
  • CMS
  • Web Design
  • Development
    • Top 10
    • WordPress
  • Review
  • SEO/SMO
  • Tutorials
  • Contact Us
image description
Category: Tutorials, Wordpress,

How to Change WordPress Sub-Menu Class with Custom Class

Oct, 02 2018

we can use wordpress filter for change ‘sub-menu’ class. place below code in functions.php for replace ‘sub-menu’ class


function replace_submenu_class($menu) {  
  $menu = preg_replace('/ class="sub-menu"/','/ class="yourclassname" /',$menu);  
  return $menu;  
}  
add_filter('wp_nav_menu','replace_submenu_class'); 
Post By : erinpickett
privious post next post

Recent Posts

  • Tips for Using Technology to Improve Your Ecommerce Business
  • Artificial intelligence in the internal audit: a new era of efficiency
  • MilesWeb’s Fastest and Cheap VPS Hosting Plans
  • The Top 10 Enterprise Governance, Risk, and Compliance Software Solutions
  • 11 Tips to Improve Customer’s Experience on your Website

Categories

  • Artificial Intelligence
  • blog
  • CMS
  • css
  • Development
  • digital marketing
  • eCommerce
  • mobile app
  • Programming
  • Review
  • Security
  • SEO/SMO
  • Top 10
  • Tutorials
  • Uncategorized
  • ux
  • VPS Hosting
  • Web Design
  • Wordpress

Recent Posts

  • Tips for Using Technology to Improve Your Ecommerce Business
  • Artificial intelligence in the internal audit: a new era of efficiency
  • MilesWeb’s Fastest and Cheap VPS Hosting Plans
  • The Top 10 Enterprise Governance, Risk, and Compliance Software Solutions
  • 11 Tips to Improve Customer’s Experience on your Website
Recent Posts
  • Tips for Using Technology to Improve Your Ecommerce Business
  • Artificial intelligence in the internal audit: a new era of efficiency
  • MilesWeb’s Fastest and Cheap VPS Hosting Plans
  • The Top 10 Enterprise Governance, Risk, and Compliance Software Solutions
  • 11 Tips to Improve Customer’s Experience on your Website
Links
  • Home
  • Advertise with us
  • Write for us
  • Contact Us
Categories
Artificial Intelligence blog CMS css Development digital marketing eCommerce mobile app Programming Review Security SEO/SMO Top 10 Tutorials Uncategorized ux VPS Hosting Web Design Wordpress

Copyright © 2019 - All Rights Reserved.

MENU
  • Home
  • CMS
  • Web Design
  • Development
    • Top 10
    • WordPress
  • Review
  • SEO/SMO
  • Tutorials
  • Contact Us