Post Format bug on the Themeum Themes?

Post Format bug on the Themeum Themes? 1

Using Guttenberg? You’ll face Post Format issue.

Post Format bug on the Themeum Themes? 2

Replace this code to the themeum-theme/js/admin/post-meta.js

/*
 * Admin Post Meta JS
 * */

jQuery(document).ready(function ($) {
'use strict';
/* Select Post Format */
$(document).on('change', 'select[id*="post-format"]', function () {
for (var i = 0; i < $('.editor-post-format select option').length; i++) {
var formate = $('.editor-post-format select option:eq(' + i + ')').attr('value');
$('div[id^=post-meta-' + formate + ']').hide();
}
var formate = $('.editor-post-format select').attr('value');
$('div[id^=post-meta-' + formate + ']').show();
});
/* End. */

$(window).load(function () {
for (var i = 0; i < $('.editor-post-format select option').length; i++) {
var formate = $('.editor-post-format select option:eq(' + i + ')').attr('value');
$('div[id^=post-meta-' + formate + ']').hide();
}
var formate = $('.editor-post-format select').attr('value');
$('div[id^=post-meta-' + formate + ']').show();
});
/* End on load. */

});

Your problem will be solved.


Want to create a beautiful website?

WP Page Builder is a free plugin that integrates with any WordPress theme. You can easily drag and drop elements onto the pages you are building, and you don’t need any coding skills to do so.

WP Page Builder is free, and you can download it from Themeum’s website. It’s also easy to install via WordPress’ admin panel, but because the plugin is new, you’ll have to scroll down the list to find it.

Post Format bug on the Themeum Themes? 3
How to install Themeum WP Page Builder

You can learn more about from this link: https://www.themeum.com/tutorial-category/wp-page-builder/

Author: Murshid Alam

Organizer of Barishal WordPress Meetup, WordPress Enthusiastic and, Open Source Lover. Over the last few years, I learned web programming and worked with them locally. I also assist in designing, developing and testing websites too! Before coming to web programming I was mostly involved with Electric Media(Channel i), Newspaper (Priyo, Bhorer Kagoj) and volunteering activities (including NGOs). I love to contribute to the WordPress Community. I am always happy to meet new peoples in the WordPress community and see how I can help them achieve their goals. When I am not online and WordPress, I love to play football, travel, riding the bike and attend Meetup/WordCamps! If you’d like, you can help me to attend WordCamps around the World.

Leave a Reply