How to create different templates for woocommerce single-product.php?
How to create different templates for woocommerce single-product.php?
How to create different templates for woocommerce single-product.php?
how to add contact form 7 shortcode in javascript variable
In my case the style tag was added by the flying font plugin. I have modified the file ‘wp-content/plugins/flying-fonts/flying-fonts.php’ ……………. $style = “<style>body{font-family:-apple-system,system-ui,BlinkMacSystemFont,’Segoe UI’,Roboto,Oxygen,Ubuntu,Cantarell,’Fira Sans’,’Droid Sans’,’Helvetica Neue’,sans-serif !important}code{font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace !important}</style>”; $style=””; // set the style as ” $html = str_replace(‘</head>’, $style . ‘</head>’, $html); ……… And i have added the style manually in non … Read more
What is unsafe about this CSS?
Since you have already made changes in various files, the code you are looking for can be found in the following file: /assets/0.2.8/css/style.css Search around line 702 in FF devTools – may differ in other browser or in the original file: .popup { letter-spacing: .1em; text-align: left; overflow: auto; z-index: 95 } There, simply add … Read more
Using Featured Image as Hero Background in Word Press
You can use the Developer Inspector (usually F9 in your browser) to bring up the page data. Right click where you see the CSS being used, and use the developer panel to click on the CSS code (you should be on the Inspector tab). Over in the right side of that developer area you should … Read more
This is possible if your theme supports full site editing. This is using WordPress 6.1. From the admin, go to Appearance > Editor. At the very top of the editor you will see the current template being edited. Click the little dropdown arrow next to that and then “Browse all Templates”. From the list of … Read more
There are a couple of issues with what you are trying to do. See this for reference: WordPress support for Custom HTML blocks First, you cannot reliably add JS code directly into any block, which is intended only for HTML and text. While the script tags may technically be HTML, your JS code certainly is … Read more
How to hide button with CSS class?