How to hide sub categories in sidebar [closed]

You didn’t give us markup so I can’t know if this is correct but .sidebar .children { display:none;} EDIT: I think you’re looking to hide your .commentlist .children correct? Line 1460-1463 of your file are the .children selector. try making each of them ol.commentlist li ul.children li.depth-2 { margin:0 0 3px; display:none} ol.commentlist li ul.children …

Read more

Woo commerce Single Product Sidebar [closed]

If you mean on your product category page: What if you remove (or comment out) the item description from your content-single-product.php, or use CSS – display:none; and place the code in your sidebar.php? Or whatever sidebar template file you are using for your products? If you don’t have one set up, you can do this …

Read more

How can I add custom sidebar to my theme? [closed]

You need to register the widget area in your themes functions.php file. Your code should look something like this. //register the widget area function your_function_name() { register_sidebar(array( ‘name’ => esc_html__(‘Sidebar’, ‘your_theme_name’), ‘id’ => ‘sidebar-1’, ‘description’ => esc_html__(‘Add widgets here.’, ‘your_theme_name’), ‘before_widget’ => ‘<section id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</section>’, ‘before_title’ => ‘<h2 class=”widget-title”>’, ‘after_title’ => …

Read more

Sidebar not appearing

@Richard, To answer your questions in their order: 1) Yes, it means dynamic sidebar(s) are supported 2) You add the code to whichever page files / templates you want the sidebar to render in 3) The sidebar will render EXACTLY where you place the code 4) You do not have to create a child theme, …

Read more

Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?

You can use the WordPress Settings API to do what you’re looking for. You can follow this – WordPress Settings API Tutorial ( www.ottopress.com ) to setup an options page, and depending upon the options saved in database you can show different content. Example – <?php // get the stored value in variable – foo …

Read more

Keeping shortcode-generated widget and theme element in one line [closed]

To get rid of the bullets and change the alingment you’ll need CSS. For the top portion: aside.widget_polylang.amr_widget, aside.widget_polylang.amr_widget ul, aside.widget_polylang.amr_widget li { /** align with li */ display: inline-block; float:right; /** remove bullets */ list-style: none; } ul.social-icons { /** align with li */ display: inline-block; float: right; } For the bottom portion: aside.widget_polylang …

Read more