Title: Missing CSS class for Sidebars
Last modified: July 24, 2022

---

# Missing CSS class for Sidebars

 *  Resolved [leogc](https://wordpress.org/support/users/leogc/)
 * (@leogc)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/)
 * Hi Greg,
 * found an other issue by testing with my new Theme. The Sidebar in a specific 
   page, which is created automatically by WPAdverts is not showing on the side,
   it is showing UNDER the Main Content. The Theme Support says this:
 * > Please contact WPAdverts support and request to add the following CSS class
   > to the body via their plugin hook:
 * `archive left-sidebar`
 * Attached 2 Images to Show what i exactly mean.
 * AD-Page is fine: [https://ibb.co/hDs221H](https://ibb.co/hDs221H)
    I think Category
   Page is the one i mean which is Wrong: [https://ibb.co/CMM8zHC](https://ibb.co/CMM8zHC)
 * If you need longer for setting an Update into WP Adverts, just let me know wehere
   i need to place which exact code for the moment and i will do so. So i can go
   forward with my redesign of the page to bring t live as soon as possible. Besides
   that so i can let you know if that works or not 😉

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Thread Starter [leogc](https://wordpress.org/support/users/leogc/)
 * (@leogc)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15854098)
 * Its me again,
 * now the Theme support told me as well that if i have a Problem with the right
   sdebar (which i Have) that it should be the class “right-sidebar”… Maybe you 
   know already what i mean, i guess we need both sides, just in case 😉
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15855445)
 * Hi,
    is it possible for you to email me a link to this page?
 * I am thinking that this is not a bug but a difference in how the theme is showing
   the Pages and Taxonomy Archives by default, but I can’t tell for sure without
   the website URL.
 *  Thread Starter [leogc](https://wordpress.org/support/users/leogc/)
 * (@leogc)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15855952)
 * Hi Greg,
 * unfortuneately the page is in a test area which is blocked by passward via htaccess.
 * I use other Plug Ins which having similar page creations for Categories etc. 
   as directory for Hotels and Business. There i do not have this “problem” all 
   pages shown correctly.
 * What exactly do you need to see? I can hand over Screenshots without Problem 
   🙂
 *  Thread Starter [leogc](https://wordpress.org/support/users/leogc/)
 * (@leogc)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15855989)
 * Another question would be, can i set up a own template and how? Because i found
   the “Rendering” Option for Category Pages. Maybe this will help me quick to sort
   this out…
 * See here what i mean: [https://ibb.co/H4khd2W](https://ibb.co/H4khd2W)
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15856209)
 * Hi,
    1. i am looking at the first screenshot again, and the pool with guys’ image
   seems to be coming from [adverts_list] but is out of place so it is also possible
   there is some kind of fatal error on this page, you can try opening wp-config.
   php file adding there `define( "WP_DEBUG", true );` and refreshing the page, 
   if there is an error it should show then.
 * As for the page itself, more than seeing it I need to use a Developer Tools console
   on it, if the content is too wide, there is some unclosed tag or something else.
 * Maybe you could add my IP address so I could bypass htaccess? If so then please
   email me via the contact form at [https://wpadverts.com/contact/](https://wpadverts.com/contact/)
 * 2. in your case in the “Render Type” you could select “None” and then create 
   a taxonomy-advert_category.php template file as explained here [https://wpadverts.com/doc/child-themes-and-templates/](https://wpadverts.com/doc/child-themes-and-templates/)
   in the “Custom Taxonomy Template” section.
 * You can skip adding the first snippet to your theme functions.php file as switching
   to the “None” “Render Option” would take care of that.
 *  Thread Starter [leogc](https://wordpress.org/support/users/leogc/)
 * (@leogc)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15857688)
 * Hi again,
 * so with Debug Mode on i do not get any Error Message in this page.
 * Only in the Page for an adverts is showing this:
 * >  Notice: Undefined index: action_class in /var/www/vhosts/xxx/wp-content/plugins/
   > wpadverts/addons/contact-form/contact-form.php on line 224
 * With Update to 2.0.1 nothing hase changed for me.
 * Sounds complicated to add a seperate template, was thinking that i can just use
   WPBakery to create tha page.
 * The Image you mentioned is an advertising Spaxce given by the Theme on each Page.
   
   Quote:
 * > You can display advert code in the end of content page for default template
   > by use this option
 * So for me that what the Theme Support says makes the most sense so far. Especially
   if i look into all other pages from WPAdverts all is fine, same as in all other
   pages i have on the website. Only this specific Taxonomie Pages in WP Advert 
   are not using the Design as it should be.
 * If you think a view into the page would be the best i can send you the log in
   details for the htaccess by the Form, just let me know.
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15858829)
 * Hi,
    i am not familiar with WPBakery but if they do have some kind of functionality
   to create a template for Custom Taxonomies (in this case the taxonomy would be“
   advert_category”) then you can use this functionality to create the template.
 * In the template, you can use the `[adverts_list category="current"]` shortcode
   to generate a proper list of ads on the category pages.
 * Also setting the “Render Option” to “None” will disable the default WPAdverts
   behavior and should allow your custom taxonomy template to be used.
 * If the URL or other details are sensitive you can email them to me via the contact
   form at [https://wpadverts.com/contact/](https://wpadverts.com/contact/) please
   do not post them here as it is against the forum rules as far as I know.
 * Ohh and with the debug turned on it seems that only a Notice showed up, it would
   not break the page rendering.
 *  Thread Starter [leogc](https://wordpress.org/support/users/leogc/)
 * (@leogc)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15860195)
 * Hi Greg,
 * yeah it could be possible to use WPBakery , i did some research, but looks complicated
   as well, was not thinking that all this can be so frustrating 🙁
 * I have send you vie the Contact Form the Details you have requested. If possible
   plese post here the possible solution as well, maybe someone else need to know
   that as well 😉
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15862548)
 * Hi,
    thanks, i have received a message from you, so you should get a reply via
   email as well soon.
 *  Thread Starter [leogc](https://wordpress.org/support/users/leogc/)
 * (@leogc)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15863866)
 * Hi Greg [@gwin](https://wordpress.org/support/users/gwin/)
 * Thanks, unfortuneately not working this given solution…
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15866614)
 * Hi,
    i will send you a reply via email soon.
 * Please reply via email only, no need to have this issue in two threads, thanks.
 *  Thread Starter [leogc](https://wordpress.org/support/users/leogc/)
 * (@leogc)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15870531)
 * Ok thank you, i have replyed again as it is working by 99 %, just a small thing
   is “wrong” if possible could you have a hint today for me?
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15870589)
 * Sure, i have sent you a reply.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Missing CSS class for Sidebars’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

## Tags

 * [css-class](https://wordpress.org/support/topic-tag/css-class/)

 * 13 replies
 * 2 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/missing-css-class-for-sidebars/#post-15870589)
 * Status: resolved