Display MAP only full width
This topic contains 8 replies, has 2 voices, and was last updated by Paolo 8 years, 7 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
March 17, 2016 at 3:04 pm #141880
Hi there,
I just started using Geodirectory and I really like it π I solved a number of issues and glitches through consulting the forum; however there is one question I have left I couldn’t find an answer to.
I’m using the latest version of WP with a Jupiter theme. Before I used the compatibility feature, I had the map in full width, but so was the content – which I didn’t like. Since I used the compatibility plugin, I now have everything properly contained in the main wrapper (which is set to 70% of page max width). However, I’d like the map to still be full width, at least in home page.
I’m guessing I have to change something in the widget compatibility settings; however, I have to admit my knowledge of coding is EXTREMELY basic π
Could you help there ?
Thanks ! Cheers,
CamilleMarch 17, 2016 at 4:19 pm #141895Hi,
I don’t think Jupiter will allow that. Please provide a link and admin credentials and we will have a look.
Thanks
March 18, 2016 at 8:07 am #142341Hi Paolo, thank you for your answer !
I’m afraid you’re right, so don’t bother. What I did is : I used shortcodes to display the map in a specific section of a dedicated page, and I set this section to fullwidth. I used shortcodes again to display the listing in a different section of the same page, which is contained in the 70% grid.
I’m not entirely happy with the solution because it means the map and listings are unrelated, right? So centering the map on a specific section won’t update listings. So I’m thinking of only keeping the map for a minimal design.
The issue I have with that is, the bubbles don’t display quite right. The place title is featured on top of the pictures, so you can barely see it. Is there a design option to change that ?
March 18, 2016 at 4:10 pm #142557Hi,
plese provide a link and we will check, images can’t be insected.
The Home map is always unrelated with the listings below, what you did is the perfect solution.
Thanks
March 28, 2016 at 12:20 pm #152643Hi Paolo,
I’m getting my way with this plugin now, although, since I’m not a developer, it required some fast learning of basic PHP and CSS π
In case you / anybody else wonders, there IS a way to display the map outside of the “wrapper” (which wraps the content into the 70% middle section of screen max width) in Jupiter. It requires changing the php template for the desired page. Since it may come in handy for others, I’ll explain it below. For instance, if you want to change single listings, with a top section widget area set to “map” :
1. Open listing-detail.php (path is plugin/geodirectory/geodirectory-templates/listing-details.php)
2. Locate the following section :/**
* Calls the top section widget area and the breadcrumbs on the details page.
*
* @since 1.1.0
*/
do_action(‘geodir_detail_before_main_content’);3. Remove it from the “###### TOP CONTENT ######” section
4. Paste it into “// call header” section and above “###### WRAPPER OPEN ######”Now your file should look like this:
header(“X-XSS-Protection: 0″); // IE requirement
// call header
get_header();/**
* Calls the top section widget area and the breadcrumbs on the details page.
*
* @since 1.1.0
*/
do_action(‘geodir_detail_before_main_content’);###### WRAPPER OPEN ######
/** This action is documented in geodirectory-templates/add-listing.php */
do_action(‘geodir_wrapper_open’, ‘details-page’, ‘geodir-wrapper’, ”);###### TOP CONTENT ######
/** This action is documented in geodirectory-templates/add-listing.php */
do_action(‘geodir_top_content’, ‘details-page’);And your page should look like the attached file.
Cheers,
CamilleMarch 28, 2016 at 5:30 pm #152787Hi,
just FYI, you shouldn’t be editing any plugins core file.
All that could be made via functions.php of your theme or lastly, by copying listing-detail.php inside a folder named geodirectory (you need to create this) inside your active theme.
That way updates of the plugin will not overwrite your code changes…
Thanks for sharing anyway! π
March 29, 2016 at 8:12 am #153141Hi Paolo,
Thanks for the heads-up. I’m not familiar with functions, but for sure I’ll copy the template into the directory you mention π
Cheers,
CamilleMarch 29, 2016 at 8:17 am #153142Hi Paolo,
Thanks for the heads-up. I’m not familiar with functions, but for sure I’ll copy the template into the directory you mention π
Once again, I’d like to say I’m very happy with this plugin, I’ll start purchasing some of the addons I need to scale it up a bit.
Cheers,
CamilleMarch 29, 2016 at 9:05 pm #153748You are welcome and thank you! π
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket