-
AuthorPosts
-
November 24, 2021 at 12:32 am #1330199
Hallo Enfold Team,
wie kann ich die Sidebar in den Kategorien der einzelnen portfolios bearbeiten?
Siehe Link untenvielen Dank
StefanNovember 24, 2021 at 5:10 am #1330240Hey 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,
IsmaelNovember 24, 2021 at 10:49 am #1330275danke 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)November 25, 2021 at 8:44 am #1330416Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.