Copying and pasting emoji in a wordpress post

Emoji are just letters. They’re defined by the user’s operating system. The same way the alphabet is. You don’t need to do anything special. If you did, then that website would be pointless. The only thing you need to consider is older operating systems that don’t support Emoji, but WordPress itself loads a script that … Read more

Twig + wordpress – how to get filemtime for style.css

You could simply use Twig’s date filter to append the current Unix timestamp via {{ ‘now’|date(‘U’) }} or {{ date().format(‘U’) }}. <link rel=”stylesheet” href=”https://wordpress.stackexchange.com/questions/333974/{{ site.theme.uri }}/dist/css/style.min.css?ver={{“now’|date(‘U’) }}” />

Update html tag class values based on Woocommerce product attribute dropdown selection [closed]

You can use the following to add/remove a customized class to #primary selector based on the selected product attribute “Color”: <script type=”text/javascript”> jQuery(function($){ var p = ‘#primary’, c = $(p).prop(‘class’), s=”select[name=”attribute_pa_color”]”; // On start if( $(s).val() !== ” ) { $(p).prop(‘class’, ‘background-‘+$(s).val()); } // On select (blur live event) $(s).blur( function() { var b = … Read more

WooCommerce: The model of e-mail is displaying only the html, not css [closed]

Well, I tested a lot of WooCommerce versions (3.3.x, 3.4.x and 3.5.x) using WP Rollback and I believe that was a error in e-mail templates that was fixed in version 3.5.2. I didn’t found nothing in the changelog about that: https://raw.githubusercontent.com/woocommerce/woocommerce/master/CHANGELOG.txt Here is the template in WooCommerce in version 3.5.2: I have to investigate more … Read more

Make shortcode’s Bootstrap CSS override the theme’s CSS, how?

Ok, I think I solved: followed this discussion so I imported Bootstrap SASS file in a new SASS file creating a custom class as container to isolate Bootstrap components and compiled the custom .scss to .css. Fixed html and body selector in new CSS file and to have working tooltips I did: $(‘[data-toggle=”tooltip”]’).tooltip({ container: ‘.custom-container’, … Read more

Change color of audio player depending on user role

The below will check the post creators role and based on that role allow you to set colour of the audio player. Created in a plugin so to stop theme updates removing it on updating functions file when updating theme. Not sure how to do this based on each comment of a person embedding a … Read more

How to Remove White Space above video Block

It’s a styling related issue so you should be more than capable to fix this issue with CSS. This should be easily accessible through the following steps in your /wp-admin/ environment: Appearance > Customize. Adding the following rule should solve your problem: .single article.has-embed { padding-top: 0; }

Two different inner shortcode under shortcodes or multiple nesting of inner shortcodes

Yes, you can keep nesting shortcodes. Just keep using the do_shortcode() until the deepest level is reached. https://codex.wordpress.org/Shortcode_API#Nested_Shortcodes So you can do this, [container] [other_column class=”extra-class”] [content] col 1 [/content] [another] col 1-2 [/another] [/other_column] [column] [another] col 2 [/another] [/column] [/container] To achieve output like this, <div class=”container”> <div class=”other-column extra-class”> <div class=”content”> col … Read more