Map width
This topic contains 14 replies, has 3 voices, and was last updated by 
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
September 25, 2014 at 12:49 pm #16499
Hi
Is there a way to make the top map display only as wide as the bunch of boxes showing ‘All dog friendly attractions’ in the main section of the page at the link I’ll send next in a private message?
I hope that sentence makes some kind of sense to someone! I’m not sure it does me!
I just want the widgets on the right hand side to move up and the map not be so ‘in your face’
Thanks
September 25, 2014 at 12:49 pm #16500This reply has been marked as private.September 25, 2014 at 1:29 pm #16502Hello, you can place the “GD > GMap Home Page” widget from “GD Home Top Section” to “GD Home Content Tection”
September 25, 2014 at 1:47 pm #16509This reply has been marked as private.September 25, 2014 at 1:50 pm #16511In the Listing page, you can place the map only on top, left/right or bottom, not in the content section
September 25, 2014 at 1:54 pm #16512Ah ok, so changing the width to a certain size somehow won’t change this to look the same if I leave it in the top section?
I really like the look of the page you helped me change, but the others just look a bit clumsy and huge 🙁
Is there anything I can do with css if all else fails?
September 25, 2014 at 2:16 pm #16517I’m good today, I’ve just made a function to do that, copy the following in the functions.php file, within your child theme
add_action( 'geodir_main_content_open', 'geodir_listings_map_before', 10 ); function geodir_listings_map_before() { the_widget( 'geodir_map_listingpage', 'width=100%' ); }🙂
September 25, 2014 at 2:41 pm #16520Hi Simone, this interested me also. Tried but it does not load map
September 25, 2014 at 2:43 pm #16523This reply has been marked as private.September 25, 2014 at 3:20 pm #16532Ok, disregard the first code, add this in functions.php in your child theme
function listing_content_init() { register_sidebar( array( 'name' => 'GD Listing Content Section ', 'id' => 'listing_content', 'before_widget' => '<div>', 'after_widget' => '</div>', 'before_title' => '<h2">', 'after_title' => '</h2>', ) ); } add_action( 'widgets_init', 'listing_content_init' ); add_action( 'geodir_main_content_open', 'geodir_listings_map_before', 10 ); function geodir_listings_map_before() { ?> <?php if ( is_active_sidebar( 'listing_content' ) ) : ?> <div> <?php dynamic_sidebar( 'listing_content' ); ?> </div> <?php endif; }and *ta-dah* you will find a new widget area called “GD Listing Content Section”, you can place the widget(s) there.
EnjoySeptember 25, 2014 at 6:25 pm #16566Mmm… something is wrong. This function generates incorrect link with share-location and obviously does not load map (in homepage)
September 25, 2014 at 6:25 pm #16567This reply has been marked as private.September 25, 2014 at 6:42 pm #16569solved. must be removed from the code, the last
?>thanks Simone
ps: question… you may have with the same way, widget area, in listing-detail?
September 25, 2014 at 7:49 pm #16580Yes I copy pasted the last part of my functions.php, the last tag needs to be removed, I’m going to edit the code I posted up
September 26, 2014 at 8:47 am #16638Thanks 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket