Display MAP only full width

This topic contains 8 replies, has 2 voices, and was last updated by  Paolo 8 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #141880

    Camille Alcover
    Free User
    Post count: 5

    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,
    Camille

    #141895

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I don’t think Jupiter will allow that. Please provide a link and admin credentials and we will have a look.

    Thanks

    #142341

    Camille Alcover
    Free User
    Post count: 5

    Hi 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 ?

    #142557

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    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

    #152643

    Camille Alcover
    Free User
    Post count: 5

    Hi 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,
    Camille

    #152787

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    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! πŸ™‚

    #153141

    Camille Alcover
    Free User
    Post count: 5

    Hi 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,
    Camille

    #153142

    Camille Alcover
    Free User
    Post count: 5

    Hi 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,
    Camille

    #153748

    Paolo
    Site Admin
    Post count: 31206

    You are welcome and thank you! πŸ™‚

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket