Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #405040

    I have two questions regarding mobile browsing:

    1: Long words in special heading elements aren’t displayed properly. What can we do about it?

    2: We use the following layout:

    <li>
    <ul>2/5 containing an image, 3/5 containing text</ul>
    <ul>3/5 containing text, 2/5 containing an image</ul>
    <ul>2/5 containing an image, 3/5 containing text</ul>
    </li>

    When browsing on a mobile phone it shows: image, text, text, image, image, text. Is it possible to show: image, text, image, text, image, text?

    Thanks in advance

    • This topic was modified 9 years ago by Yigit. Reason: fixed HTML
    #405084

    Hi mrijnders ;
    I would imagine that you should use “”Media queries” and add the same elements in a different order for mobil.
    Here is how I’d imagine :

    For desktop :
    > Color section (with your custom id “your-desktop-color-section”
    2/5 containing an image, 3/5 containing text
    3/5 containing text, 2/5 containing an image
    2/5 containing an image, 3/5 containing text

    /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
    @media only screen and (min-width: 767px){
    your-mobil-color-section{display: none !important;}
    }
    

    For Mobil :
    > ANOTHER Color section (with your custom id “your-mobil-color-section”
    2/5 containing an image, 3/5 containing text
    2/5 containing an image, 3/5 containing text
    2/5 containing an image, 3/5 containing text

    /*Mobile and Tablet Portrait view */
    @media only screen and (max-width: 767px) {
      /* Add your Mobile Styles here */
    your-desktop-color-section{display: none !important;}
    }
    
    #405607

    Hi!

    Please try the following in your Quick CSS:

    @media only screen and (max-width: 767px) {
    h1.av-special-heading-tag{
    font-size: 30px !important
    }
    h2.av-special-heading-tag{
    font-size: 24px !important
    }
    }

    Regards,
    Rikard

    • This reply was modified 9 years ago by Rikard.
    #405645
    This reply has been marked as private.
    #405646

    Hi begrakis,

    Does that mean you have duplicated content on every page that you use this method on?

    #405820

    Hi mrijnders ;
    I’m sure there would be many other ways to do.

    But if you have not an enormous amount of pages it can be done easily with Enfold :
    You create your first “Color section with the id (your-desktop-color-section)”
    add in it :
    2/5 containing an image, 3/5 containing text
    3/5 containing text, 2/5 containing an image
    2/5 containing an image, 3/5 containing text

    and just “duplicate” that “color section”
    change the id to “your-mobil-color-section”
    and change the layout to :
    2/5 containing an image, 3/5 containing text
    2/5 containing an image, 3/5 containing text
    2/5 containing an image, 3/5 containing text

    #406261

    Hey!

    We edited the code above (https://kriesi.at/support/topic/two-questions-regarding-browsing-on-mobile/#post-405607), there are missing dots. ( Please replace the code. Remove browser cache then reload the page.

    Regards,
    Ismael

    #406290
    This reply has been marked as private.
    #406340

    Hi!

    Sorry, my initial code was wrong, please try the following instead:

    @media only screen and (max-width: 767px) {
    h1.av-special-heading-tag{
    font-size: 30px !important;
    }
    h2.av-special-heading-tag{
    font-size: 24px !important;
    }
    }

    Edit the 30 or 24 for a larger or smaller values for a larger or smaller font. Also, make sure to empty your browser cache and reload a few times after pasting the code.

    Cheers!
    Rikard

    • This reply was modified 9 years ago by Rikard.
    #409733

    Hi,

    I tried to change the h2 to 20px, 16px and 14px, but it looks that the font doesn’t get smaller on an iphone lower than 20px. So some words still don’t fit on the page.

    #409786

    Hi!

    Please try adding following code to Quick CSS as well

    @media only screen and (max-width: 480px) {
    h2.av-special-heading-tag{
    font-size: 16px !important;
    }
    }

    Cheers!
    Yigit

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.