Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Addons
  3. Google Maps and text

Google Maps and text

Scheduled Pinned Locked Moved Addons
7 Posts 2 Posters 216 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cschm.tz
    wrote on Dec 7, 2020, 10:55 PM last edited by
    #1

    @mariusjopen
    Hi all, I am using WP Google Maps as a plugin for my site.
    Do you by any chance know if it allows you to have text over the map?

    The idea was to have the map as a full size background and some descriptive text on top, instead of underneath as I have now.
    https://lasalbercas.com/como-llegar-2-2

    Any suggestions are great at this stage!!!
    Thanks so much in advance,

    Christian

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Richard
      Global Moderator
      wrote on Dec 8, 2020, 4:22 AM last edited by Richard Dec 7, 2020, 11:22 PM
      #2

      Dear Christian @cschm-tz

      I don't know if its possible with the Google maps plugin..

      Try adding this code to the "Custom CSS" Area of 'Lay Options - Custom CSS & HTML" :

      .text.lay-textformat-parent {
          transform: translate(0px , -500px);
      
      }
      

      Screen Shot 2020-12-08 at 5.22.30 PM.png
      Let me know how you go and have a wonderful day :)
      Richard

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cschm.tz
        wrote on Dec 8, 2020, 1:10 PM last edited by
        #3

        @Richard-K said in Google Maps and text:

        .text.lay-textformat-parent {
        transform: translate(0px , -500px);

        }

        Hey Richard!
        Thanks so much for your tips :)

        The text has now moved which is definitely progress, but now I am left with a blank space which is where the text used to live. Is there a way of getting rid of this without deleting the text altogether? (screenshot attached)

        This is the updated link by the way!
        https://lasalbercas.com/como-llegar-2-2-3

        Thanks again for your help and have a great day!
        Christian

        Captura de pantalla 2020-12-08 a las 13.08.38.png Captura de pantalla 2020-12-08 a las 13.08.46.png

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cschm.tz
          wrote on Dec 9, 2020, 4:12 PM last edited by
          #4

          @Richard-K
          Hey again Richard,
          Is it possible this last change in css you suggested changes the text behaviour throughout the whole site?

          .text.lay-textformat-parent {
          transform: translate(0px , -740px);

          Is there a way of only addressing the paragraph in the maps page which appears in the above screenshots?

          Thanks so much for your time!!!
          All the best

          Christian

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Richard
            Global Moderator
            wrote on Dec 10, 2020, 9:58 AM last edited by
            #5

            Dear Christian

            You are completely right, i was not thinking properly sorry.

            We can give an element within the Gridder its own class or ID so we can target it specifically:

            Right-click element:
            Screen Shot 2020-12-10 at 10.45.49 PM.png

            Then set either a custom 'Class' or 'ID' in my example i have used 'special' :
            Screen Shot 2020-12-10 at 10.46.12 PM.png

            Then the code if you chose a 'class' ( also don't actually need to address 'text' anymore but just to be safe ) :

            .special .text {
                transform: translate(0px , -500px);
            }
            

            Or the Code if you chose an ID :

            #special .text {
                transform: translate(0px , -500px);
            }
            

            CSS transform: translate - has a lot of possible options and you can change the code to suit your needs:
            https://www.w3schools.com/css/css3_2dtransforms.asp

            Once again sorry about my past answer, and thanks for using Lay Theme Christian
            If you have any more questions let me know :)

            Best
            Richard

            1 Reply Last reply
            0
            • C Offline
              C Offline
              cschm.tz
              wrote on Dec 10, 2020, 11:11 AM last edited by
              #6

              @Richard-K said in Google Maps and text:

              .special .text {
              transform: translate(0px , -500px);
              }

              Hi Richard

              Thank you so much that will become very handy, although that sadly still doesn't solve the white gap I am left with — where the text original was placed. I have reattached for you to see :)

              Getting rid of this space through css has meant deleting the text altogether — do you know a way around this?

              Thanks again for all your helpful suggestions,
              Best

              Christian

              Captura de pantalla 2020-12-08 a las 13.08.38.png

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Richard
                Global Moderator
                wrote on Dec 15, 2020, 1:56 AM last edited by
                #7

                Dear @cschm-tz

                Are you able just to use the 'stack' feature?

                Screen Shot 2020-12-15 at 2.54.35 PM.png

                Text should easily be placed on top ' stacked' on other elements - i was using code because i assumed this hadn't worked for you

                Best
                Richard

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes

                5/7

                Dec 10, 2020, 9:58 AM


                I also code custom websites or custom Lay features.
                💿 Email me here: 💿
                info@laytheme.com

                Before you post:
                1. When using a WordPress Cache plugin, disable it or clear your cache.
                2. Update Lay Theme and all Lay Theme Addons
                3. Disable all Plugins
                4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                This often solves issues you might run into

                When you post:
                1. Post a link to where the problem is
                2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                Online Users
                S
                slartislart
                9 minutes ago
                Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                laytheme.com
                • Login

                • Don't have an account? Register

                • Login or register to search.
                5 out of 7
                • First post
                  5/7
                  Last post
                0
                • Recent
                • Tags
                • Popular
                • Users
                • Search