creating different style CTA button in the menu

why don’t you add a class that is the permalink for example? ie $output .= “<li class=”nav-item $active_class $dropdown_class ” . implode(” “, $item->classes) . “”>”; (this line is strange first because it’s going to output “nav item $active_class $dropdown_class”…is that what you want?) but all the same it COULD be $output .= “<li class=”nav-item … Read more

Why items could not be enclosed within items in WordPress?

You need a shortcode to deal with the removal of the <i> from the editor. You’ll have to add this to your functions.php of your theme/child theme. function dd_fontawesome_shortcode ($atts) { $args = shortcode_atts( array( ‘icon’ => ”, ‘size’ => ’14’, ‘color’ => ‘#000’, ‘type’ => ‘fa’ ), $atts ) ; $output=”<i class=””.$args[‘type’].’ ‘. $args[‘icon’] … Read more