Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 0.8.12, card_width, map_frame_height, Market
- This topic has 6 replies, 2 voices, and was last updated 12 years, 2 months ago by
Steven Zahm.
-
AuthorPosts
-
06/18/2014 at 2:02 pm #294214
Matthew
ParticipantI am trying to change the width of the Google Map. I have made changes to the layout of the Market template, but the width of the map is always set to 426px, which may be either set to 426px or a percentage of the container width. In either case, I cannot find any place that sets this. If I look in the market.php file i see a setting for the height that can be changed and will display properly if it is changed.
$permittedAtts['map_frame_height'] = 400;
I do see a reference to the width of the map frame in the card.php and the single-card.pfp files.$gMap = $entry->getMapBlock( array( 'height' => $atts['map_frame_height'] , 'width' => ( $atts['map_frame_width'] ) ? $atts['map_frame_width'] : NULL , 'return' => TRUE , 'zoom' => $atts['map_zoom'] )But I find no other reference to it where i can set the parameters. I tried changing it to match the height:
'height' => $atts['map_frame_height'] , 'width' => $atts['map_frame_width'] ,and added a line to the market.php file underneath the height setting:
$permittedAtts['map_frame_height'] = 400; $permittedAtts['map_frame_width'] = 658;But is does nothing.
Attachments:
You must be logged in to view attached files.06/18/2014 at 4:17 pm #294239Steven Zahm
Keymaster@ Matthew
The
map_frame_widthwidth is calculated dynamically based on thecard_widthvalue.How did you change the width of Market, here’s the supported method.
06/18/2014 at 5:10 pm #294242Matthew
ParticipantHere is my CSS styling that I use for the Market template:
#cn-gmap{ width:100% !important; } .email-name, .cn-separator, .address-name, .phone-name, .link-name { display: none !important; } #cn-market h3 { font-size: 18px; } #cn-list{ width:920px !important; } /* #cn-list .cn-clear{ clear:none !important; } */ #cn-list-head{ width:900px !important; } #cn-list-body{ width:690px !important; padding-top:10px; } .cn-entry{ font-size: 16px !important; width:690px !important; } span{ line-height:20px !important; margin-bottom:0px !important; } div#cn-list span.title { font-style:italic !important; } div#cn-market div.cn-search input#search-submit { width:50px !important; height:25px !important; }06/18/2014 at 5:52 pm #294244Matthew
ParticipantI have it working now. Thanks
06/18/2014 at 6:22 pm #294276Steven Zahm
Keymaster@ Matthew
Great to hear! Did you use the method outlined in the FAQ I linked to in my previous reply?
06/19/2014 at 9:00 am #294323Matthew
ParticipantI did, but I wanted to make the card responsive, so i still had to make CSS changes:
#cn-list{ width:100% !important; min-width:500px !important; } #cn-list-body{ width:80% !important; min-width:500px !important; }I couldn’t get the map to be responsive by not setting a width or trying to set a width percentage 100%, however, what did work was to set the card_width=(100%) with parenthesis. This only works if I use it in combination with the CSS changes. I don’t know why, but it works if I use them all together.
06/19/2014 at 10:33 am #294337Steven Zahm
Keymaster@ Matthew
Thanks for the feedback! I’ll see what I can do to bake this into Market.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
