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. General Discussion
  3. Custom div (link) blocking content / captions font size

Custom div (link) blocking content / captions font size

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 864 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.
  • K Offline
    K Offline
    kubmin
    wrote on last edited by kubmin
    #1

    Hi there,

    First of all, thanks for this awesome theme! Really great to work with!
    I have a question though, I've modified the theme a little bit to show a custom link in the right corner (contact) on the mobile version. The code I've put in the mobile CSS & HTML are:

    --// CSS //--

    .sitetitle {
    display:block;
    position: fixed;
    font-size: 20px;
    top: 20px;
    left: 20px;
    border-bottom: 3px solid #000;
    padding-bottom: 3px;
    }

    .contactlink {
    position: fixed;
    font-size: 20px;
    border-bottom: 3px solid #000;
    padding-bottom: 3px;
    bottom: 20px;
    right: 20px;
    }

    --// HTML //--

    <div class="contactlink">
    <a href="/contact/">Contact</a>
    </div>


    However, this code of mine causes the contact page to not show any content on the mobile view. Desktop works fine and shows all the right content. Any ideas what might be causing this problem?

    Oh, and how do you know a way to change the captions font size for the mobile view?

    Thanks a lot! I hope my explanation has been clear enough for you to grasp.

    With kind regards,

    Boris .

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      Hey Boris!
      Can you send me the link please?
      If you mean captions for images; If you use textformats to style your captions, then you can set an extra fontsize for mobile. http://laytheme.com/how-to-use.html#textformats

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kubmin
        wrote on last edited by
        #3

        Hi there!

        Thanks for your reply!
        I don't think I explained it clearly. This is the website I'm talking about: http://borissmeenk.nl/

        In mobile view it shows the index page perfectly, but when I'm navigating to the contact page, it shows a blank page with just the links.

        Any ideas?

        Thanks for your help!

        With kind regards,

        Boris.

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by arminunruh
          #4

          You seem to be using some custom css for the mobile version. You're hiding the text and you gave the image a class of "bureau" which also hides it. That's why you don't see anything

          .bureau {
              display: none;
          }
          
          .text {
              display: none;
          }
          

          It seems that you only want to hide the text on the frontpage and not in contact for mobile. Then you need to target the frontpage's text:

          body[data-type="category"][data-id="1"] .text {
              display: none;
          }
          

          Please read the first few paragraphs here to learn about targeting certain Lay Theme pages with CSS:
          http://laytheme.com/how-to-use.html#custom-css-styling

          Anyway, if u just want the text to be smaller on mobile, please use textformats for that.

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


          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
          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.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search