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

    Hallo Enfold Team,

    wie kann ich die Sidebar in den Kategorien der einzelnen portfolios bearbeiten?
    Siehe Link unten

    vielen Dank
    Stefan

    #1330240

    Hey allespalettibystefan,

    Thank you for the inquiry.

    You can edit the widgets in the sidebar via the Appearance > Widgets panel. Widgets within the Displayed Everywhere widget area are displayed by default, but you can use plugins like If Widget or Widget Logic to control the visibility of the widgets.

    // https://wordpress.org/plugins/if-widget/
    // https://wordpress.org/plugins/widget-logic/

    Best regards,
    Ismael

    #1330275

    danke für die schnelle Antwort.

    kann ich das auch ohne plugin einstellen so wie für alle anderen Sidebars?
    Wenn ich Displayed Everywhere nehme dann ist die Sidebar die ich einstelle ja auf jeder seite zu sehen und das möchte ich nicht.
    Möchte die portfolio Kategorien sidebar speziell bearbeiten.
    (siehe link)

    #1330416

    Hi,

    Thank you for the update.

    Unfortunately, there is no dedicated widget area for the portfolio category sidebar, so you may have to add the widgets in the Displayed Everywhere widget area and use a plugin to control their visibility.

    You can also modify the sidebar.php file and add a new condition to display a different widget area on portfolio category pages. In the file, look for this code around line 65.

      // general shop sidebars
                if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
    

    Below, add a new condition.

      // portfolio category sidebars
                if ($avia_config['currently_viewing'] == 'portfolio' && dynamic_sidebar('Portfolio Category') ) : $default_sidebar = false; endif;
    

    You will then have to register a new sidebar or widget area called “Portfolio Category”.

    register_sidebar(array(
    			'name' => 'Portfolio Category',
    			'before_widget' => '<section id="%1$s" class="widget clearfix %2$s">',
    			'after_widget' => '<span class="seperator extralight-border"></span></section>',
    			'before_title' => '<h3 class="widgettitle">',
    			'after_title' => '</h3>',
    			'id'=>'av_portfolio_category'
    		));
    

    The new widget area should display in the Appearance > Widgets panel afterwards.

    Best regards,
    Ismael

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