Jump to content

Archived

This topic is now archived and is closed to further replies.

nokow

maps section bigger than 400px

Recommended Posts

nokow

Hello, 

 

everything is in the title, i use maps (full) section but 400px is a little bit small to show what i want. Can i change that with custom css? 

 

Thanks

Share this post


Link to post
Share on other sites
Danny

Hi,

 

You can't do that with CSS. However, what you can do is create a child section of Maps and then edit the section.php file. Do not edit the section.php file from the DMS directory, this isn't recommended nor supported.

 

Once you have created a child section of maps, open the section.php file in a code editor such as SubLime Text and scroll to line 98, which will look like this:

 

array(
'type' => 'select',
'key' => 'map_height',
'default' => '350px',
'label' => __( 'Select Map Height ( default 350px)', 'pagelines' ),
'opts' => array(
'200px' => array( 'name' => '200px'),
'250px' => array( 'name' => '250px'),
'300px' => array( 'name' => '300px'),
'350px' => array( 'name' => '350px'),
'400px' => array( 'name' => '400px'),
)
),
 
Then simply add more height options like so:
 
array(
'type' => 'select',
'key' => 'map_height',
'default' => '350px',
'label' => __( 'Select Map Height ( default 350px)', 'pagelines' ),
'opts' => array(
'200px' => array( 'name' => '200px'),
'250px' => array( 'name' => '250px'),
'300px' => array( 'name' => '300px'),
'350px' => array( 'name' => '350px'),
'400px' => array( 'name' => '400px'),
'500px' => array( 'name' => '500px'),
'600px' => array( 'name' => '600px'),
'700px' => array( 'name' => '700px'),
'800px' => array( 'name' => '800px'),
)
),
 
I have also added this request to our tracker on your behalf.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
John Olsson

Hm, don't get it to work.. Even if I try to do it directly in the dms-theme.. Sure there isn't someting more? :)

Share this post


Link to post
Share on other sites
Danny

Not sure what you mean ?

 

I tried my suggestion above before posting, in order to make edits to a sections code, you need to create a child of that section, by using a child theme. Then you can edit the sections code without worrying about voiding all support or updates overwriting your changes.

 

For more information on how to create a child section, see our documentation - http://docs.pagelines.com/advanced/override-sections

 

You can also use my child theme - http://dannyholt.github.io/skeleton/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mundocaco

Danny thank you for make Skeleton Child Theme and create this solution for maps section! Works lovely.

 

Best regards!

 

<3

Share this post


Link to post
Share on other sites
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×