Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Daniel Iceman
tagDiv Member

@crodexter
I really needed the PHP blocks (my site has a lot of custom code areas like review scores, etc), so I’m using a patch for this: first, I register a custom widget area where I need PHP using the Theme Panel > Blog and posts templates > Custom sidebar. Then, using the “PHP Code Widget” plugin for WordPress, I simply put the code there.

I’m sure it’s not the cleanest method, but it works.

Daniel Iceman
tagDiv Member

In fact, nothing is covered for me since I don’t have personal support anymore for a long time (since 2016 or so).

But if any user knows how to do it and are up to share, it would be appreciated anyway. I’ve been checking my database and the subtitles are stored into arrays in the td_post_theme_settings meta_key, what is problem for SQL. Seems like some update_post_meta solution is needed.

Thank you.

Daniel Iceman
tagDiv Member

Ok. I found it studying the database and ended up with my own solution: an if block checking if Newspaper fields exist, and if not, echoing the fields created for my new theme (since I didn’t found out yet how to convert Newspaper old fields to the new one, impossible to do manually in thousands of articles). Thank you.

Daniel Iceman
tagDiv Member

Sorry, but I couldn’t make it work, because the theme keeps loading the minified script. Is it auto generated? Or should I override the tagdiv_theme.min.js with the tagdiv_theme.js?

Daniel Iceman
tagDiv Member

Good to know. I’ll try this, thank you.

Daniel Iceman
tagDiv Member

In fact, I’m trying myself with jQuery to addClass, so I can use :before pseudo selector to do it.
Is there any ajax trigger when the results are loaded?

// let's check search lenght

var $jq = jQuery.noConflict();
$jq('#td-header-search').on('input', function() {
if ( ($jq(this).val().length) > 0) $jq(this).addClass('letspin'); // if > 0, give class to show
else $jq(this).removeClass('letspin'); // if search is empty, remove
// BUT HOW TO CHECK IF THE RESULTS WERE LOADED TO REMOVE THE CLASS?
});

Viewing 6 posts - 1 through 6 (of 6 total)