Dropdown Category form. Only show Sub-Categories

You just need to set the parent argument of get_categories() (or better yet, get_terms() to the ID of the the-building-code term. If you don’t know the ID you’ll need to retrieve that first: <form class=”js-filter-form”> <select name=”categories” id=”categories”> <?php $parent = get_term_by( ‘slug’, ‘the-building-code’, ‘podcast_category’ ); $cat_args = array( ‘taxonomy’ => ‘podcast_category’, ‘parent’ => $parent->term_id, … Read more

Hide Title tag on image Hover

Check Errors in console by pressing F12, Your code is correct but WordPress sometimes don’t understands $, Use jQuery instead of $. <script> jQuery(document).ready(function($) { jQuery(‘img’).hover(function() { jQuery(this).removeAttr(‘title’); }); });

Overriding inline !important CSS with Javscript code snippet with media query

why you prefer use javascript instead off css it self? javascript will overwrite the css rules if you put in wrong ways. please provide me the web inspect (if you use chrome or firefox). sometimes, css will not work if precedence not qualified reff: https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity if you cant provide the web inspect, would you like … Read more

WordPress – Query specific category and automatically change category each month

Natively, I would suggest you to create an option page with some options value. Take a look at this : https://wisdmlabs.com/blog/create-settings-options-page-for-wordpress-plugin/ After created your options, do you logic by getting the options value (= category id) per key (= month number) Some plugin does that easily (such as ACF, but premium version)

jQuery Datepicker displays wrong language until interection with the calendar

This must have been a conflict in my site. TBH, I wasn’t able to spot the conflict, but I was able to circumvent it by setting the necessary lang strings just before datepicker’s initiation like so: $(function() { $.datepicker.regional[‘el’] = { closeText: ‘Κλείσιμο’, prevText: ‘Προηγούμενος’, nextText: ‘Επόμενος’, currentText: ‘Σήμερα’, monthNames: [‘Ιανουάριος’, ‘Φεβρουάριος’, ‘Μάρτιος’, ‘Απρίλιος’, ‘Μάιος’, … Read more

jQuery works in console but not when in a file

I tested and works fine. but you can use the wp_footer hook and you can add your custom js. check below code. code will go to the active theme functions.php file. function add_custom_scripts(){ ?> <script type=”text/javascript”> (function($){ $(document).ready(function() { $( ‘#menu-item-927’ ).on( ‘ubermenuopen’, function(){ $(‘.site-content’).addClass(‘blur’); }); }); })(jQuery); </script> <?php } add_action( ‘wp_footer’, ‘add_custom_scripts’, 10, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)