Tag Info

New answers tagged

0

wp_nav_menu( array( 'menu_id'=>'nav', 'theme_location'=>'header-menu' , 'depth' => 1) ); you can use depth parameter for this.. Click here! More Info: child theme Create child theme and copy code from header.php of parent theme then replace the code wp_nav_menu( array( 'menu_id'=>'nav', 'theme_location'=>'header-menu' ) ); with the ...


1

Well they share a same name... try to declare name as array. <select name="custom_element_grid_class[]" id="custom_element_grid_class">


0

You have the add_action that's supposed to hook your prfx_meta_save function inside the function itself, so it never gets hooked or called. You need to move the add_action outside the function. This will never work: function prfx_meta_save( $post_id ) { add_action( 'save_post', 'prfx_meta_save' ); } Move it outside the function: function ...


1

I tried your suggestion and only needed to make a small adjustment... removing the "{" and worked the code looked like this <option value="<?php echo $country; ?>" <?php if ($country == Brasil) echo 'selected="selected" ';?>><?php echo $country; ?></option> thank you!


0

should be selected="selected" NOT "selected=selected" EDIT: Ok I see - it's because you are using a foreach arguement to say that it's selected. Meaning that it prints the HTML showing that everything should be selected. Try something like this: <select name="pais" class="pais-select"> <option value="" disabled selected>PaĆ­s</option> ...


0

Well, the answer depends on what you mean by "custom dropdown only for the first menu item which is different from the other item dropdowns" - different how? If it's just stylistic, that extra class should be enough. You just have to make sure the css for it is specific enough to override the defaults. So if your css selectors on the other dropdowns are ...



Top 50 recent answers are included