How do I set is_active_sidebar?
Question
I have a Page like:
<?php
/*
Template Name: Agenda
*/
get_header(); ?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
My Hompagetext
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar('test'); ?>
</div><!-- .wrap -->
<?php get_footer();?>
I have a sidebar called: sidebar-test.php
<aside id="secondary" class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Test Sidebar', 'rczo2' ); ?>">
this text is displayed on the bottom but I want it in the sidebar on the right side
</aside><!-- #secondary -->
I tryed reading across the WP-documentation and found how to register a widget, but not how to include a simple script like this.
0
sidebar
4 years
2020-02-10T08:39:07-05:00
2020-02-10T08:39:07-05:00 0 Answers
49 views
0
Leave an answer