Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #1351401

    hi, I’m probably sinking in a glass of water…
    I’ve created a custom sidebar that I recall on my website pages here https://www.toscanamedica-rivista.it/scienza-e-cultura/ for example..

    How can I recall my custom sidebar with my custom widgets in the blog’s categories sidebar?
    here I have the default widgets: https://www.toscanamedica-rivista.it/categoria/scienza-cultura/ but I want the same custom sidebar named “Toscana medica sidebar” with these widget:

    my widgets in my sidebar

    to see website (under development) please insert ” (Email address hidden if logged out) ” here: https://www.toscanamedica-rivista.it/


    Hey Nicola,

    Thank you for the inquiry.

    You can try this filter in the functions.php file.

    function avf_custom_sidebar_mod($sidebar) {
    	if ( is_archive() ) {
    		$sidebar = "Toscana Medica Sidebar";
    	return $sidebar; 

    Or just use the same widgets in the Sidebar Blog widget area.

    Best regards,


    Thanks Ismael.
    It worked using your custom function.

    I still don’t understand why it did not worked setting the widget this way, as you marked above:

    • This reply was modified 1 year, 6 months ago by niguli.


    Glad to know that the modification is working. Did you install a widget logic plugin? You might have adjusted the visibility of the widgets and set them to only display on a specific page.

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.