Fix for empty columns

Columns appear empty ( even when they are not ) . I have a WordPress 4.1.2 site using no plugins at all, just Betheme version 7.4. I tested importing content and making a blank page with just a column element. HTML or regular text, it did not matter, after I saved the column appeared empty. However if I looked at the textarea element with chrome developer tools I could see the text I entered was there!  It just looks empty but if I look at the page on the frontend the content appears.  Here is the solution I found to patch this up... Edit the options.js file in the /muffin-options/js folder,

after this line of code: 

// export link button
jQuery('.mfn-import-exp-link-btn').click(function(){
jQuery('.mfn-import-exp-code').hide();
jQuery('.mfn-import-exp-link').stop().fadeIn(500);
});


add the following lines: 

jQuery( '#mfn-wrapper .mfn-element-edit' ).one( 'click', function()  {
var popup_textarea_val = jQuery( '#mfn-popup .mfn-element-meta textarea' ).val();
jQuery( '#mfn-popup .mfn-element-meta textarea' ).val( null );
jQuery( '#mfn-popup .mfn-element-meta textarea' ).val( popup_textarea_val );
});

Comments

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.