Adding to the WYSIWYG

TinyMCE has a ‘formats’ dropdown that you can add options to: This option enables you to add more advanced style formats for text and other elements to the editor. The value of this option will be rendered as styles in the styleselect dropdown toolbar item. https://www.tinymce.com/docs/configure/content-formatting/#style_formats The first thing you need to do is add … Read more

How to add urls in html widget in a gravity form? [closed]

I think the issues is with the Quotes your using in your html…. if what you have pasted is what you are actually using href=”http://strippersjob.eu/es/aviso-legal/” These href=”http://strippersjob.eu/es/aviso-legal/” quotes seem to be Typographic quotes and not acceptable html quotes. The Typographic quotes are not really opening or clossing the href attribute so you are getting weird … Read more

How to safely return the HTML?

Ok, so this is why it’s important to post the actual code that’s giving you problems. There is nothing wrong with this, which is all you had originally: return ‘<button type=”button” class=”btn btn-success”>Open Now</button>’; If that was the error, you could ignore it. This, on the other hand, does need to be escaped: $wppl_open = … Read more

Can’t add image to site via php

While not really a WordPress issue, it is something we’re all probably going to have to deal with in developing. Check to make sure your ad blocker isn’t the problem. If it is, add your sites to the allowed list of domains so that you can still see what your site is supposed to look … Read more

­ hyphenation not working in Gutenberg editor

With the ‘new’ Gutenberg editor the previously working solution using the tiny_mce_before_init hook does not work anymore, but there is the possibility to define a new shortcode in your theme / plugin as a workaround. Solution for Gutenberg add_shortcode(‘shy’, ‘my_shy_shortcode’); function my_shy_shortcode($atts) { return ‘&shy;’; } This simply adds a new shortcode to WordPress with … Read more

Phantom strong tags in wordpress

You most likely haven’t correctly closed a <strong> tag somewhere. This is the browser’s attempt to resolve that problem. If you look at the raw HTML source by right clicking then View Page Source (not Inspect Element) you should be able to see if there’s a <strong> tag with a missing or misspelled </strong> tag. … Read more

Make textarea required. Help [closed]

I struggled with this for a while. Give this a try. It’s working on my free theme add_filter( ‘woocommerce_checkout_fields’ , ‘your_override_checkout_fields’ ); function your_override_checkout_fields( $fields ) { $fields[‘order’][‘order_comments’][‘required’] = true; return $fields; }