Add button to menu item at the same row

Please try something like this. function add_button( $output, $item, $depth, $args ){ if (in_array(“menu-item-has-children”, $item->classes)) { $output=”<button type=”button” class=”btn btn-circle”> <i class=”fa fa-chevron-circle-down”></i> </button>”.$output; } return $output; } add_filter( ‘walker_nav_menu_start_el’, ‘add_button’,10,4);

Call to Action Button – Resize Help [closed]

This is not so much a WordPress questions as it is a simple CSS question, but adding this rule to your theme’s CSS should make the button text the same size as the surrounding text. .navbar .header-right a { font-size: 11px; } If you also wanted to reduce the overall size of the box that … Read more

How can I change page content for good once a button is pressed?

Do I understand problem correctly? [QR1] -> Scan -> [Claim listing] -> [QR1->QR2 claimed] -> [QR2] Here what comes to mind class RenderPage function gen_qr(is_claimed) if (is_claimed) return generate_qr2; else return generate_qr1 function display_page() $qr_code = gen_qr(get_option(‘<page_id>_qr’)); // on button click update_option(‘<page_id>_qr’) It’s a bit schematic, but I think you got the idea. P.S. Just … Read more