Suggest you move your desired functionality to javascript; you are so badly attempting to overload the purpose of these constructs…even if you get it to work you are going to have a very fragile and difficult to maintain system on your hands.
Note that the idea of inlining style may work — but future Content Security Policy may kill that idea…inline CSS is a weak spot; see this OWASP explanation for more information.
Related Posts:
- How to hide a div section when user is logged in, in single product woocommerce
- How do I integrate vanilla Javascript to a wordpress website?
- I have a background-image in css file but don’t show in site.how to fix this prblm. i sent screenshot. thx
- Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project
- Warning: Use of undefined constant all – assumed ‘all’ (this will throw an Error in a future version of PHP) in C:\Users\…….. on line 6
- Drop down question
- Trying to generate a CSS file in wordpress uploads folder
- WP Website is shown in HTML
- Pages from admin dasboard missing after site migration
- Can’t display anything through homepage text editor
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- Rewrite rule not working, but only when parameter is text
- Internal Server Errors – Moving working multi-site install to my localhost
- How to print all the inline styles in the WP_Styles instance together with their keys?
- I cannot find the wordpress.scss file that my live site is pulling from
- The style.php file inside theme-engine folder has other content on FTP
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- I have a lot of JavaScript erorrs after SSL someone can help me?
- WordPress Slider is not working
- I got big white screen when i attach main style sheet of Html in functions.php
- register dependency css and js inside a plugin class
- Hide author from search results meta, still display date and categories
- How to display post meta bellow every posts
- How to locate parent theme functions and add functions to my wordpress child theme?
- How to let mobile navigation menu close when link is clicked?
- how to add functions to my function.php using a child theme?
- Add my footer menu to the header
- Replace header with large image on home page only, using Genesis child theme
- Add a default style if no Featured image is selected
- Add Shortcode to ::before class
- Make a full-width wordpress page
- Site title not showing. Please help me
- Fix hover images blink
- Bring Font Awesome icons inside menu A tags
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Styling a specific post after hovering over it
- Hot to edit WooCOmmerce dashboard?
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- Using Sprit-sheet on WordPress categories
- Blog Image and Title in Right Sidebar
- Trying to add get_the_title hook to this line
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- How to block access to a folder inside of wp-content for non logged in users?
- Add class for the_post_thumbnail_caption()
- custom field – changing an element or background of id div – different versions not working
- WordPress Redirect / Add_Rewrite_Rule – Non Index.php Page
- Target a specific container to style on WordPress storefront theme
- How to display post_content from database in different on template page?
- How to include different html tags in the header for different pages?
- Displaying POST content with HTML tags and all
- remove blank space where sidebar was
- CSS loading as empty file in Custom Theme
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- user update profile for custom code
- Display specific main Sub Nav on Woocommerce product pages
- Position a repeated article blocks
- How to change query string with pretty URL in WordPress using .htaccess file
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- Upload images from one server to an other in wordpress
- Problem with ajax request and directory structure after site migration
- How limit the width of a fixed menu-bar on scroll?
- Highlight Single Page Ancestor
- How can I add “.html” to the end of a single URL on a WordPress website?
- Custom Thumbnails [closed]
- Font-Family does not looks like how it should be [closed]
- Resource 404 error on multisite subdirectory install
- Custom Theme, Editor won’t wrap text (i.e. change width)
- redirect 301 with special character like WIX site “#!”
- 301 redirect from webpage to wordpress page in the same root
- Where to find the html for WordPress site? [closed]
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Click to expand menu
- Relative post date in recent posts list
- How to add style in functions.php depending on conditions?
- How to remove image on single product and get product to span page?
- Widget edit and add in any page
- widget: input the px value from user and use it as inline style in widget function
- Redirect homepage /page/1/ to /blog/page/1/
- Modify arguments for parent theme’s `wp_register_style` via child theme
- Styling admin page rows in order of importance (checkboxes)
- Hide button based on PHP result
- Why isn’t my link attribute getting my css?
- How to have Function of a plugin using global vars into a shortcode?
- How to save the output of php variables used in inline css code to the main style.css?
- Revision History for Entire WordPress Site
- Show contact 7 form in popup
- wp add inline style in loop
- Child theme not working properly
- WordPress – Image href for home menu nav not working
- How Can I Center the Logo in the Navigation Menu? [closed]
- featured post as div background
- Combining fancybox with multiple thumbnail plugin
- Display pages from specific page template
- Enabling XSendFile causes 404 for images on WordPress Multisite / Network
- Trying to customize wordpress drop down categories
- Show Nav Link To Users Signed In
- Is it possible to remove the “Shop” title from the WooCommerce catalogue? [closed]
- Removing website URL in comments causes misalignment of submit button and tickbox
- How to add global CSS to all webpages without installing any plugin?