Home Forums Support Map in header

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #187434
    Jorge

    I want to insert a map on a header with a width of 100%. I’m using a plugin that allows you to configure the map with that width and generate a short code to paste. The problem is that when the short code is pasted into the header or a section not looks 100%.

    Configurartion:

    Header
    Container type: fluid

    Secction
    Box type: fluid
    Container type: fluid

    In the header it maintains the container content.
    In the section is almost 100% but with a border on each side.

    #187504
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this CSS a try:

    .inside-header.grid-container {
        max-width: 100%;
    }

    Adding CSS: https://generatepress.com/knowledgebase/adding-css/

    #187562
    Jorge

    ok, I downloaded and installed the plugin, but do not quite know how it works.
    I thought that when opened, I could see all the CSS code.
    Do I have to paste just that? Sorry for my ignorance.

    #187586
    Tom
    Lead Developer
    Lead Developer

    No worries! Once Simple CSS is activated, go to “Appearance > Simple CSS” and just paste the code above, then save 🙂

    #187640
    Jorge

    thanks, but i tried it and it does not work

    #187683
    Tom
    Lead Developer
    Lead Developer

    Can you link me to the page?

    #187783
    Jorge

    No, I’m in the process of creation and i have on the local server.
    Now I can do without that, but I would like to know how.

    #187830
    Tom
    Lead Developer
    Lead Developer

    The code I gave you should work.

    Make sure the map is set to be 100% or at least a very large width.

    Otherwise there’s not much I can do without actually seeing what’s going on I’m afraid.

    #188007
    Jorge

    I wanted the map occupied the entire width of the header or section.
    The section is almost 100%, but with margins. In the header it seems as if the fluid container function does not work with the map.
    It is rare why it works with any image.
    The plugin lets you adjust the map width to 100%.

    I decided to put the map in a section contained for now. If the customer wants the width to 100% will try other plugins.

    thanks!

    #188048
    Tom
    Lead Developer
    Lead Developer

    Ah, the margin can be removed in the Element Spacing add-on (Customize > Element Spacing > Header).

    Or you can use CSS:

    .inside-header {
        padding: 0;
    }
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.