Trying to hide the contact form on a particular page

If I understand correctly, you’re trying to turn off the ability for users to add new comments on a single blog post. Is that right? If so, instead of using CSS, I’d recommend using the built-in WordPress feature to turn off commenting for a single blog post. You’ll find it within the “Discussion” section when … Read more

Set version number in child’s style.css file

you can define the version when enqueuing the file : add_action(“wp_enqueue_scripts”, function () { wp_enqueue_style( “child-style” , get_stylesheet_uri() // = get_stylesheet_directory_uri() . “/style.css” , [“parent-style”] , wp_get_theme()->version // use the child theme version ); });

Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page

Each product should have a unique class identifier in the body. Compare two product pages and depending on the theme you are using. Allot of them have a unique css identify. Look for something like: postid- followed my numbers for example. If you had something like: <body class=”product-template-default single single-product postid-3592 wp-custom-logo woocommerce woocommerce-page woocommerce-no-js … Read more

How to get different html tags from the content using regex?

“Hi dear all, I finally found a solution for my question. I like to share it with you to be helpful. I will be glad if someone can make a better and precise solution for it. Below is the working code: <!DOCTYPE html> <html> <head> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <style> .accordion { background-color: #7ED957; color: … Read more

How to style bootstrap container in WordPress?

Ok, so a couple of things: The code that you have there should work fine, unless as WebElaine suggested it’s not actually there, or it’s being overridden somewhere else in your styles. I would strongly advise against the approach that you are taking to achieve the desired result. The col-md-5 class is a core bootstrap … Read more