Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Text with background image

    General Discussion
    4
    4
    810
    Loading More Posts
    • 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.
    • P
      pizzarrone last edited by arminunruh

      Hey,
      how can i create a block with image + centered txt ?
      ex. http://www.ruggierodesantis.com/site/wp-content/uploads/2017/01/bg-trees-4.jpg

      is it possible with lay features?
      Best

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        hey pizzarrone

        I'm writing your idea down and will work on making it a feature one day.

        Right now you could do this with some css.

        Go to your gridder and right click your textblock where you have your centered text.
        By resizing the element in the gridder, give it a good width so your text has a lot of space in that box. Now right click your textbox and for "space top" and "space bottom" enter "20" for example.

        Now your textbox will look kind of like this:
        0_1486143595977_Screen Shot 2017-02-03 at 18.38.50.png

        Now right click the textbox and choose "Set HTML class and id". As the "class" enter: textbox1

        Save your project.
        Go to your media library, click on an image and copy the url from the info box that has opened.

        Now go to "Lay Options" -> "Custom CSS & HTML"

        In "Custom <head> content" enter:

        <style>
            .textbox1{
                background-image: url("http://laytheme.dev/wp-content/uploads/2017/01/ruine_recens_L7_1104.jpg");
                background-size: cover;
            }
        </style>
        

        Of course my url to my image http://laytheme.dev/wp-content/uploads/2017/01/ruine_recens_L7_1104.jpg should be replaced by your url to your image.

        1 Reply Last reply Reply Quote 0
        • edgrbnz
          edgrbnz last edited by

          Is there a feature, yet to set size and position of a background image?
          Would be pretty cool!

          ✦ ✦ ✦

          1 Reply Last reply Reply Quote 0
          • mariusjopen
            mariusjopen Global Moderator last edited by

            Dear @edgrbnz
            not possible yet.

            We will write it down.

            Best!

            Marius

            www.mariusjopen.world

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Post a link to where the problem is
            I don't answer or check forum DMs, please just post on the forum.
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

            Before you post:

            Use the Search Feature. Maybe there is already a solution to your issue.

            1. Update Lay Theme and all Lay Theme Addons
            2. Disable all Plugins
            3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
            4. Now see if your problem solved itself
            5. Go here, see if your problem is listed here:
            Troubleshooting

            When you post:
            1. Post a link to where the problem is
            2. If the problem is difficult to explain, post screenshots / link to a video to explain it

            Thanks!

            Online Users

            G

            Recent Topics

            • S

              Changing space above/below gets delete

            • A

              Corruption of website

            • A

              installation/website bearbeiten

            • R

              Slow loading overall

            laytheme.com