Add html tot CPT edit screen – no metabox
I found a solution add_action(‘edit_form_advanced’, ‘add_to_admin_cpt’); function add_to_admin_cpt() { global $post; if ($post->post_type == ‘catalog’) { //doing my own stuff } }
I found a solution add_action(‘edit_form_advanced’, ‘add_to_admin_cpt’); function add_to_admin_cpt() { global $post; if ($post->post_type == ‘catalog’) { //doing my own stuff } }
Add This code in functions.php file class WP_Custom_Nav_Walker extends Walker_Nav_Menu { public function start_el(&$output, $item, $depth = 0, $args = array (), $id = 0) { $indent = ( $depth ) ? str_repeat ( “\t”, $depth ) : ”; $classes = empty ( $item->classes ) ? array () : (array) $item->classes; $classes[] = ‘menu-item-‘ . … Read more
Can anyone explain why setting a block attributes source to a data-attribute doesn’t work?
You can always use the “Inspect Tool” in your browser to see the details of the object (structure and style). Though I checked your page and didn’t see anything wrong with it. As you can see in the list in the top of your picture, the last item has a few space. Another point is … Read more
Shortcode not working inside div html
I’d action this by adding an additional background video div to the code and positioning fixed. Just need to tweak the z-index to layer the main container and background video. See demo: https://jsfiddle.net/t9mznyrq/
HTML for adding a meta box (basic text field) to page editor?
PHP function for horizontal Woocommerce thumbnails and badges
Why is WordPress swapping double quotes (“) to curly quotes (“) and how do I stop it from happening?
Given that it is a modal, you should be able to add the code in header.php or footer.php. I would recommened adding to footer.php above wp_footer();