You’re using the widget name and not i.d which is why it isn’t working.
Change this:
if (is_active_sidebar( 'My_Widgtet_Area' ) ) : ?>
<div id="widget-sidebar">
<ul>
<?php dynamic_sidebar( 'My_Widgtet_Area' ); ?>
</ul>
To this:
if (is_active_sidebar( 'partner-slide' ) ) : ?>
<div id="widget-sidebar">
<ul>
<?php dynamic_sidebar( 'partner-slide' ); ?>
</ul>
The i.d in the template tag immediately above should match the i.d you use to register the widget in your functions file which in this case is partner-slide
register_sidebar(array(
'name' => 'My Widget Area',
'id' => 'partner-slide',
That’s one obvious problem and there may be others however you should follow the Codex as it provides working examples with related links http://codex.wordpress.org/Function_Reference/dynamic_sidebar
Related Posts:
- How to get the registered sidebar’s name by its id?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Customizer: Output default value in Customizer CSS
- Customizer: active_callback and sanitize_callback incompatibility?
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Why have on every line
- Function to return true if current page has child pages
- How do register_sidebar() and get_sidebar() work together?
- List of all theme customizer control types?
- Get author full name
- Is having multiple theme customizers for different pages possible?
- How to export/import theme customizer settings?
- reason of splitting theme files to multiple files
- is there a simple way to list every templates / php files used to generate a specific page?
- One button to change all settings in theme customizer?
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Design view breaking on Pages
- List authors with posts in a category
- Use different javascript files for each page on website
- How to get custom image size for image uploaded in Customizer
- Passing array in add_option()
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
- Changing the template hierarchy
- Can’t load WP function into external function
- Displaying theme options in css
- Set WordPress Default Template
- How to add just one specific page to widget without plugin?
- WordPress does not load page.php, return 404.php
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Converting HTML Template to WordPress Theme
- Extending the WP_Widget_Text class
- adding custom user input fields in WordPress admin dashboard gives error The link you followed has expired. Please try again
- Menu jumping when calling it via PHP
- How to edit widget code to add unique class name to each div?
- How do I link a button I created in theme customizer to a function?
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Widget Option is Missing
- What does this mean in wordpress? Easy question
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- Underscore – Self hosted fonts
- Separation of presentation and code – WordPress
- Hook called before text widget save
- WordPress Customizer Default Image
- Why in my theme I can’t see all the statics content under the posts?
- get_template_directory adding FTP root folders in urls
- How to add the sidebar to all the pages except the home page? [closed]
- Header not properly displaying on archive.php
- Save Custom CSS file in the upload folder dynamically?
- Widgets not showing on custom theme
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- home.php show blog posts as grid view
- WordPress widget and customize.php not working in Ubuntu16.04 VPS
- How to Update an old theme for the latest wordpress version
- get_comments_number() returns 0
- Is there a hack for using is_page() within the function.php file?
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- Why in this WordPress theme I can’t see the Main Menu?
- How can I assign separate stylesheets to different pages?
- How to make sure relative URL works when site is not on root domain?
- pass html code to worpdress
- Commas in Tag Cloud
- WordPress redirects page query parameter in URL
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- How do you create a custom category widget that you can style?
- Not able to remove caption shortcode from the content
- How to use wp_get_attachment_image or wp_get_attachment_image_src instead of $instance[‘single_feature_image_uri’]
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- Inserting a class on before_widget if checkbox is checked
- Unable to retrieve get_author_posts_url
- Display post date also if the date it’s the same for each post
- WordPress child theme, creating a custom php template page
- Menu to the right of screen on desktop using Bootstrap 4
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- How to get php file based on URL in WordPress
- How can I customize a WordPress theme before it’s downloaded?
- Use Custiomizer to setup meta theme color tag
- Rotating Header Images
- Where can I find the declaration of `$_wp_theme_features`?
- Create a custom theme-specific page, invisible in the admin-panel?
- Display tab title as ‘blog tagline | blog title’
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Best strategy for providing theme options using customizer
- Showing custom field contents without listing description
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- Image not displayed
- Using existing widget code! [closed]
- Widget header unique classes
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- How to add button to top of theme customizer?
- Edit the Publish Widget Options
- Predefine Magazine Style Layouts
- How to remove the intro animation which appears during the load up of some WordPress themes? [closed]
- How to store the_post_thumbnail() value in a variable
- Font Awesome Icons as squares [closed]