Title: Problem with gallery height
Last modified: October 8, 2018

---

# Problem with gallery height

 *  Resolved [masterclass](https://wordpress.org/support/users/masterclass/)
 * (@masterclass)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/)
 * 1. I tried to increase the height of gallery image on the product detail page
   using plugin settings and the code below but it did not work. Any solution?
 * /* CSS For Images on Advert Details pages */
    .wpadverts-slide, .wpadverts-slide
   img { height: 720px; }
 * 2. Is it possible to disable “additional information” when adding a classified
   via admin.” if yes how?
 * 3. Is it possible to have the item to show light box when clicked instead of 
   opening details. if yes, how?

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

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/#post-10759031)
 * Hi,
    1. can you paste here a link to a page where you are having this problem
   so i can see how does the problem look like?
 * 2. when adding an Ad via wp-admin panel you do not need to feel the “Additional
   Information” section (even though some of the fields are marked as “required”).
 * After saving the Ad, all the data will be saved in the database, WPAdverts will
   just inform you that some of the required fields were not filled.
 * If this will not work for you then i can send you a code which will make all 
   the fields in “Additional Information” section optional?
 * 3. do you mean on the Ad details pages? If so then you can enable lightbox from
   wp-admin / Classifieds / Options / Core / Gallery panel by checking the “Allow
   opening Gallery images in a Lightbox.” checkbox.
 *  Thread Starter [masterclass](https://wordpress.org/support/users/masterclass/)
 * (@masterclass)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/#post-10773146)
 * 1. Here is the link (shortened & safe)- [https://upstarter.co.bw/page-not-found/](https://upstarter.co.bw/page-not-found/)
 * 2. Works fine thanks. But i think what i wanted to do was to remove/hide the “
   show contact information” box and the category text on the ad details page.
 * 3. No, on the ad listing page (ad front page).
    -  This reply was modified 6 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/#post-10773694)
 * 1. thanks, but the gallery does not display on this page at all. I am looking
   at the page source and there is following JS error “Uncaught TypeError: Cannot
   read property ‘prototype’ of undefined”, it is most likely blocking the gallery
   from displaying, but it is impossible to tell where is this error coming from
   as the source code is minified. Can you disable a plugin that does this? It will
   be easier to troubleshoot then or maybe the minifying plugin is causing a JS 
   error.
 * 2. the show contact information box you can hide by adding the code below in 
   your theme functions.php file
 *     ```
       add_action( "init", "my_init", 1000 );
       function my_init() {
           remove_action('adverts_tpl_single_bottom', 'adverts_single_contact_information');
       }
       ```
   
 * The category text you can hide by going to wp-admin / Appearance / Customize /
   Additional CSS panel and adding there the code below
 *     ```
       .single-advert p.cats {
           display: none !important;
       }
       ```
   
 * 3. on the ads front page ([https://startupbotswana.com/adverts](https://startupbotswana.com/adverts))
   it is not really possible to open the gallery, it is available only on the Ad
   details pages.
 *  Thread Starter [masterclass](https://wordpress.org/support/users/masterclass/)
 * (@masterclass)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/#post-10780114)
 * 1. Please look at this again. The adverts are showing again (removed the height
   code) and I have also disabled minification on the advert pages.
 * 2. That did it, works well. Thanks
 * 4. I would like to change advert title from bold text to regular text.
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/#post-10781260)
 * 1. to allow the gallery to use more height space add in wp-admin / Appearance/
   Customize / Additional CSS panel the code below
 *     ```
       .wpadverts-slide,
       .wpadverts-slide .wpadverts-slide-img {
           height: 500px !important;
       }
       ```
   
 * To me it looks like what you are trying to do is show the whole image instead
   of having it cut in the middle, if so then you can add the code below in stead
   in the Additional CSS panel it will make sure that always the whole image is 
   shown
 *     ```
       img.wpadverts-slide-img {
           object-fit: contain !important;
       }
       ```
   
 * 4. also in Additional CSS panel
 *     ```
       .adverts-list .advert-post-title span.advert-link .advert-link-text {
           font-weight: normal !important;
       }
       ```
   
 *  Thread Starter [masterclass](https://wordpress.org/support/users/masterclass/)
 * (@masterclass)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/#post-10783359)
 * 1. Yes i would like to show the whole image. The solution works but not in the
   way i want. It shows the whole image but within the gallery slider container,
   so the image is shrinked and not clear. Example: [https://startupbotswana.com/advert/weekend-sesolo](https://startupbotswana.com/advert/weekend-sesolo)
 * I want it to appear this way (like in a normal wp page/post) [https://startupbotswana.com/advert-example](https://startupbotswana.com/advert-example)
 * 4. Thanks, the solution worked.
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/#post-10783959)
 * 1. in this case discard the second snippet and use the first one only, just change
   the height 500px to the actual height you would like to use.
 *  Thread Starter [masterclass](https://wordpress.org/support/users/masterclass/)
 * (@masterclass)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/#post-10790825)
 * Oh yes that worked. Thank you for the wonderful support. Cheers!

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

The topic ‘Problem with gallery height’ 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/)

 * 8 replies
 * 2 participants
 * Last reply from: [masterclass](https://wordpress.org/support/users/masterclass/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/problem-with-gallery-height/#post-10790825)
 * Status: resolved