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:
- Mixed Content Page: requested an insecure stylesheet error
- How to create custom 401, 403 and 500 error pages?
- Adding first / last CSS classes to menus
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- PHP – redirect https to http and www to non-www
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Bypass .htaccess when using download_url
- How can I run a .php file located in my site’s root folder?
- Fix 403 error on WordPress multisite network using subdomains
- functions.php not adding css to website?
- WordPress-site can be reached on x.x.x.x/index.php – but not directly on the IP without index.php
- WordPress doesn’t include css
- Understanding child theme functions.php
- Want to create Child theme, but already edited Parent theme css files and some php files
- Style every second widget?
- php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
- wp nav menu: add attributes to menu items [duplicate]
- Put CSS inside a PHP file and include it the right way
- Missing sidebar parameter “fix” – before_content
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- Plugin CSS not enqueing
- How to use my style.css file outside of wordpress subdomain?
- Apache Fallback instead of add_rewrite_rule
- Can I install/embed WordPress on a ‘single page’?
- Was told to change the .htacess file form .html to .php so this would work properly
- How to design a table based on css values set from admin/dashboard
- How to change redirection route to a php page for making it only accessible by logged-in members?
- subdirectory index.php is not working
- Best way to schedule daily change in CSS parameter
- two columns of posts on homepage, one of them “favorites”
- custom css for admin only
- responsive.css in the WordPress should be prioritized
- WordPress style.css not updating, only after theme reload
- Adding logo to WordPress header
- Thumbnails appear to be zoomed
- Odd / Even posts add class minus first post
- WordPress archive page showing 404 Error [duplicate]
- Troll the hackers by redirecting them
- Styling the second sidebar
- How to add drag and drop functionalities to a div inside option panel
- Removing WordPress Footer -without access to PHP code?
- Seo Friendly Filter URLs
- CSS change in woo commerce Place Order Text [closed]
- Post repeated when opening in overlay, how do I solve this? [closed]
- Menu Custom Data Attributes
- Add New Text Box To WordPress Twenty Seventeen Header
- Split site title and apply different classes
- Need help removing […] after excerpt
- jQuery accordion menu
- Twentyfifteen style author comment
- Extend Menu Walker Output
- Dynamic CSS through PHP issue
- How to make changes to style.php [closed]
- conditional: if is page, and all subpages
- How to sort posts by active category in WordPress?
- Create Columns with Custom Walker and CSS Classes
- Background image no longer fits to screen now that project is in php files
- Why would the child theme load in the Customize preview, but not on the site itself?
- How to make only the valid active page of a multilevel menu active with – “.nav li.current-menu-item a”?
- echo cutom css code to WordPress page template file ? is this safe?
- WordPress custom php script to match standard page layout
- I can’t go to the page archive-{post_type}.php
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- I have a background-image in css file but don’t show in site.how to fix this prblm. i sent screenshot. thx
- Trying to generate a CSS file in wordpress uploads folder
- WP Website is shown in HTML
- Internal Server Errors – Moving working multi-site install to my localhost
- I cannot find the wordpress.scss file that my live site is pulling from
- 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?
- 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
- Add a default style if no Featured image is selected
- Styling a specific post after hovering over it
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- custom field – changing an element or background of id div – different versions not working
- CSS loading as empty file in Custom Theme
- user update profile for custom code
- How to change query string with pretty URL in WordPress using .htaccess file
- How limit the width of a fixed menu-bar on scroll?
- Where to find the html for WordPress site? [closed]
- How to remove image on single product and get product to span page?
- widget: input the px value from user and use it as inline style in widget function
- Show contact 7 form in popup
- How Can I Center the Logo in the Navigation Menu? [closed]
- How to change the menu color
- Converting Menu Links to List Elements
- How to get shared CSS body class between translated WPML pages [closed]
- How to customize posts in WordPress by using HTML and CSS?
- How to create and add js and css file when server is not on my PC?
- which php or css file has generated an inline style in WordPress that overwrites my css
- Header location [closed]
- Blog listing not showing dates for every post and arrow missing off image
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- Editing stylehseet url in head section of WordPress
- How can we upload custom page files?
- HELP PLEASE PHP slider css
- Is it possible to remove the “Shop” title from the WooCommerce catalogue? [closed]
- How to add global CSS to all webpages without installing any plugin?