Change HTML structure for custom menu in sidebar

I’ve been digging for documentation on how to change HTML output for the “Custom menu” which you place in optional widget. So its clear what I meen I have attached an image of the widget block here: The output from this element is looking like this: <div class=”nav_menu-8 widget_nav_menu col-sm-4″> <div class=”menu-expo-container”> <ul id=”menu-expo” class=”menu”> … Read more

Insert Widget option into mark-up with register_sidebar

I have added a custom field to my all widgets in my theme, called “custom-title”. I have managed to save the field into the database for each widget, like so: s:12:”custom-title”;s:17:”HELLO TEST ANCHOR” I want to use this to add a data-attribute “custom-title” to the mark-up for each widget, on the before_widget argument. I want … Read more

Removing custom widget area WordPress 4.4 [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers’ support routes. Closed 5 … Read more

How to exclude certain widget from showing up on home/front page? [duplicate]

This question already has answers here: Call dynamic_sidebar but include/exclude named widgets? (3 answers) Closed 6 years ago. Without using a plugin, how do I prevent/exclude the sidebar widget “recent posts” from showing up on the home/front page? I do want it to show on the sidebar of rest of other archive/post pages. 1 Answer … Read more

How to get sidebar’s content inside admin-ajax?

I’m using a modal to display some content via an admin-ajax request. Now I have problem outputting the content of a sidebar (text widgets, used for adding advertisement scripts). When I directly use dynamic_sidebar(‘ads’), it outputs the content randomly all over the modal. What I was able to do was to use output buffering. ob_start(); … Read more

Add Icons to the Product Category Sidebar Widget WooCommerce

I have been searching for this since yesterday. It’s weird the little info is there about this simple function, I suppose that’s because the answer is too obvious. But I didn’t find the way to display icons in the product category sidebar widget. I found this plugin https://wordpress.org/plugins/taxonomy-images/ to add images/icons to the categories, but … Read more

How To Remove/hide some specific categories from two different categories widget from sidebar

I have two categories sidebar widgets with different topics on my site. I want to hide some specific categories from each of the widgets. Is there any way to do so? Suppose I have total Categories like Health, Life, Fashion, and Sports. Now I have two category widgets, Widget1 and Widget2. I want Health and … Read more

show posts names and links in the sidebar list as categories child

i’m using this plugin to show an exapandable/collapsible widget-menu in my sidebar. http://wordpress.org/extend/plugins/folding-category-widget it works very well! the question, not directly connected with this plugin, is: how can i also show in the list, all posts related to a category (title + a href)? for example: category A post1 post2 category B post3 post4 category … Read more