GeoDirectory SupportMap width not working – GeoDirectory Support https://wpgeodirectory.com/support/topic/map-width-not-working/feed Sat, 15 Mar 2025 05:45:50 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26542 <![CDATA[Map width not working]]> https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26542 Tue, 06 Jan 2015 21:02:56 +0000 Robert Strobel Hey,

We’re trying to use the map widget on our custom homepage. We do NOT want to use the GeoDir homepage.. we have our own needs and want to use a wordpress page. We installed a plugin to enable us to use widgets as shortcodes ([widget id=”id of the widget”])

I added the Homepage Map widget to this page using the shortcode mentioned above. I changed the widget width setting to 100%.. tried 1000px too… it keeps staying at 960px?

I added a css rule using the div ids I can see.. set width to 100%… this changes the wrapper but the map itself keeps staying at 960px…

This is urgent.. please help.. time here is being wasted

]]>
https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26546 <![CDATA[Reply To: Map width not working]]> https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26546 Tue, 06 Jan 2015 21:04:47 +0000 Robert Strobel https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26560 <![CDATA[Reply To: Map width not working]]> https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26560 Tue, 06 Jan 2015 21:45:54 +0000 Paolo Hi,

the problem is that the shortcode plugin isn’t able to pass the width variable to the function creating the map, like the widget did.

Why don’t you add a custom widget area to your custom home page instead, that way you can use the widget as it is supposed to be used?

add this to your theme functions.php


if ( function_exists('register_sidebar') )
    register_sidebar( array(
   'name' => __( 'My Custom Widget Area - 1'),
   'id' => 'mycustomwidgetarea',
   'description' => __( 'An optional widget area for your home map', 'yourthemename' ),
   'before_widget' => '<div id="%1$s" class="widget %2$s">',
   'after_widget' => "</div>",
   'before_title' => '',
   'after_title' => '',
   ) );

and this in your home page template.


<?php 
 // Custom widget Area Start
 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('My Custom Widget Area - 1') ) : ?>
<?php endif;
// Custom widget Area End
?>

It will create a widget area where you can use the widget as it is supposed to be used.

Let us know,

]]>
https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26570 <![CDATA[Reply To: Map width not working]]> https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26570 Tue, 06 Jan 2015 22:28:28 +0000 Robert Strobel It’s not a template. It’s the same template as other pages. We want content above and below it so adding a is_front_page() condition would not work either

]]>
https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26576 <![CDATA[Reply To: Map width not working]]> https://wpgeodirectory.com/support/topic/map-width-not-working/#post-26576 Wed, 07 Jan 2015 00:16:39 +0000 Paolo What you wish to do, currently cannot be done.

We have an addon with shortcodes for all widgets almost finished, but it hasn’t been tested enough to release it.

We’ll try to get into it and release it asap.

Thanks

]]>