Widget background images missing on second blog excerpt page

If you look at your browser’s error console, you’ll see the 404 errors for your background images, which will point to where the issue is. This URL: ../wp-content/themes/themename/images/cat-party.jpg basically says, “go up one directory from the current directory, then from there look in wp-content, then themes, then images, etc..”. That works fine on the front … Read more

How to save widget settings on field value change?

You’re going to want to use AJAX for this. WordPress provides resources for connecting JS to PHP callbacks which is outlined in detail in the Codex. Basically, you’ll want to take the following steps: Attach a handler to the first category select box using the .change() jQuery method. Use an AJAX function to post that … Read more

Output column number according to active sidebars

Use the array_filter() function, which will remove every array element that has false as the value. Then you can count the array length. So your example would look like this: $sidebars = array( is_active_sidebar( ‘footer-4’ ), is_active_sidebar( ‘footer-3’ ), is_active_sidebar( ‘footer-2’ ), is_active_sidebar( ‘footer-1’ ), ); $active_sidebars = array_filter($sidebars); echo ‘col-‘.count($active_sidebars);

Making jQuery .change() event persistent after widget save

The form reloads itself each time you save returning to the initial state where all are shown. What you can do is this: // Getting the value of the selected field var my_select_value = $(‘#widgets-right select.my-select’).val(); // If there’s no value selected, hide everything. if(my_select_value == 0){ $(‘.widget-test .row’).hide(); } // Otherwise, show the specific … Read more

Widgets in WP 4.3 disappearing – How to fix?

This is a bug in WordPress 4.3. The authors have made the necessary revisions to core and it will be fixed in WordPress 4.3.1. In the meantime, you can patch your version of WordPress. The details are here: https://core.trac.wordpress.org/ticket/33442

Widget page stopped loading

Issues like this can be difficult to track down at times. You’ve started down the correct path by narrowing the scope of the issue down to those 3 widgets. If there is any additional information such as the name of the theme and the widgets you’ve found to cause the issue that would be helpful. … Read more

Add footer widgets

The correct way is to make a child theme from the chosen theme and alter only the footer template to add additional sidebars. You can prepare additional sidebars in the child themes function.php and add them to any template you need altered.

Is there any tab widget plugin supporting third party widgets? [closed]

TAB PLUGINS Widgets in Tabs Collapsible Widget Area Section Widget Ultimate Tabbed Widgets & Shortcodes Ultimate also do this. Although, they use shortcodes. However, you could add Widget Shortcode Plugin which creates shortcodes for your actual widgets. Then you can simply put these shortcodes inside a tabbed shortcode like the ones provided in Shortcodes Ultimate. … Read more

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