How to remove automatically added

I afraid that added by some custom function or JavaScript because WordPress never add that tag by default. So use CSS to hide that element if you don’t find that script

How do I show a button only on my custom template page?

It’s as simple as doing a conditional and check if you are on home. What you are looking for is is_page_template( );. Wrap your button inside it as follows: <?php if( is_page_template( ‘your-template-slug.php’ ) ){ ?> <button name=”button” style=” … ” value=”OK” type=”button”>HAVE A QUESTIONS</button> <?php } ?>

custom css in admin panel by user id

Use below code into functions.php file. Make sure you are using it right way use admin_enqueue_scripts add_action(‘admin_enqueue_scripts’, ‘FUNCTION_NAME’);function FUNCTION_NAME() { global $current_user; $user_id = get_current_user_id(); if(is_admin() && $user_id == ‘2’){ wp_enqueue_style( ‘admin_css’, get_template_directory_uri() . ‘/admin-style.css’, false, ‘1.0.0’ ); }}

Bootstrap 4 Optimization

You just make a big mistake. use this guideline. header.php <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css” integrity=”sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm” crossorigin=”anonymous”> You also made a mistake calling js file. Frist needs jQuery then popper.js then bootstrap and the big mistake is you call all of them in the header file, that’s why when the page is loaded it takes time to … Read more

Browser stacks different versions of style.css

The problem comes from that the parent style is loaded twice : one with version (‘?ver=1.0 etc, first on your picture and loaded by your parent theme with versionning on wp_enqueue_style ), another without (the second on your picture, called by your function php). To solve this : remove wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ ); … Read more

Use of CSS classes in editor-blocks.css file

Searching the editor source code: https://github.com/WordPress/gutenberg does not show much results. I suggest search the theme source code these classes to see where they are applied. (If you press . while viewing the code on github you will get a VSCode editor) register_block_type is used to add the block date in WordPress. Typically with these … Read more

Having Trouble Styling a Table in a WordPress Post

Your understanding is partly right. Later styles override earlier ones IF they have the same or less specificity of the selectors. Specificity can be a tricky/counter-intuitive thing, but the basics are: selectors that specify an element in a more narrow (specific) way override those that define them in a broader way. It all depends on … Read more

Apply Classes to post text inside editor

You’ll need two code snippets. The first puts the select menu there. The second populates it. This is based on this tutorial, but slimmed down a bit. add_filter( ‘mce_buttons_2’, ‘mrw_mce_bad_buttons’ ); add_filter( ‘tiny_mce_before_init’, ‘mrw_mce_init’ ); function my_mce_buttons() { return array(‘formatselect’, ‘styleselect’, ‘|’, ‘forecolor’, ‘underline’, ‘justifyfull’, ‘|’, ‘pastetext’, ‘pasteword’, ‘removeformat’, ‘|’, ‘charmap’, ‘|’, ‘outdent’, ‘indent’, ‘|’, … Read more