Custom JS doesn’t work after 4.9.9 update [closed]

you do have your menu JS code currently 2 times on the page. in https://www.manufakturamocy.pl/mm/wp-content/cache/minify/b6a70.default.include-body.8cc603.js and in https://www.manufakturamocy.pl/mm/wp-content/themes/mmocy/js/script.js?ver=4.9.9 which causes your menu open and close in the same time. maybe a problem with your cache and JS minify plugin.

Translations in source code

This is “normal” in WordPress 5 as this is what the new wp_set_script_translations function is for. The function tells WordPress to associate a JSON file containing translations with a specific script that will make use of them. It makes use of them as you see, by embedding the translations as JavaScript objects. You say this … Read more

How to display specific title on Customizer?

You can create a Custom Control for WP Customizer and use it. For example: class Sub_Section_Heading_Custom_Control extends WP_Customize_Control { //The type of control being rendered public $type=”sub_section_heading”; //Render the control in the customizer public function render_content() { ?> <div class=”sub-section-heading-control”> <?php if( !empty( $this->label ) ) { ?> <h4 class=”customize-control-title”> <?php echo esc_html( $this->label ); … Read more

Theme causing SSL break on chrome

Google has marked matx.coderpixel.com as a phishing site. That’s not your domain, of course. However you are using resources from that site. Specifically you are using several images from matx.coderpixel.com/wp/wp-content/uploads/2016/04, including android_phone.jpg, cloudy_hill.jpg, desk.jpg, keyboard.jpg, and man_with_ipad.jpg. It is a bad (and unless you have the rights to use these images, illegal) practice to serve … Read more

Feed RSS problem on WordPress, need it for Google News

Your problem is your CDN, Stackpath: I’d guess it’s rejecting the feed validator request based on User-Agent string. If you use curl to request the feed, then it serves back Content-Type: text/html and Stackpath Sorry, you have been blocked. This website is using a security service to protect itself from online attacks. You performed an … Read more

Display featured image metadata?

The featured image is just an attachment, and you can retrieve its post ID via get_post_thumbnail_id, e.g. $featured_image_id = get_post_thumbnail_id( $post ); At which point you’re dealing with a standard post of type attachment. Other than checking that there is a featured image, no special handling is needed and it can be treated as any … Read more