adapazarı escort sakarya escort akyazı escort anal escort arifiye escort erenler escort ferizli escort geyve escort hendek escort karasu escort pamukova escort sapanca escort serdivan escort söğütlü escort taraklı escort sakarya escort sakarya escort
serdivan escort sakarya escort sakarya escort sakarya escort sakarya escort sakarya escort ankara travesti webmaster forum hd porn nevşehir escort
ankara escort bayan ankara escort bayan ankara escort
Add CSS Classes To Menu Items In WordPress Archives - Wpdevcodes
sakarya escort sakarya escort sakarya escort bayan sakarya escort bayan serdivan escort kayseri escort webmaster forum

Tag Archives: Add CSS Classes To Menu Items In WordPress

As a default WordPress allow to add default class in the li tag. But to adding custom class in the anchor tag on WordPress, it’s very simple and easy. In this tutorial we will show you How to Add a Custom Class to a WordPress Menu Item:

Here is the code, paste the below code into the theme function.php file.

add_filter( 'nav_menu_link_attributes', function($atts) {
$atts['class'] = "nav-link-item";
return $atts;
}, 100, 1 );

After adding this code you can see the class "nav-link-item" has been added in the anchor tag for the menu.