Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #628430

    Hello!

    How can I adjust full-width easy slider caption title font size, caption font size and caption positioning on small mobile views for one specific page only?

    The code below works for most pages, but there are a couple that I would like to adjust individually if possible, and adding .page-id-60 in front of the code below doesn’t work.

    What am I missing?

    Links are below. Thanks in advance for your help!

    /* adjust slider height on small mobile portrait views */
    @media only screen and (max-width: 480px) {
    #full_slider_1 .avia-slideshow-inner, #full_slider_1 img{
    height: 120px !important;
    }
    }

    /* adjust caption locations on small mobile portrait views */
    @media only screen and (max-width: 480px) {
    .caption_bottom .slideshow_caption {
    top: 150px !important; left: 1.5px !important;
    bottom: auto !important;
    }
    }

    /* adjust slider caption title font size on small mobile portrait views */
    @media only screen and (max-width: 480px) {
    .responsive #top .slideshow_caption h2 {
    font-size: 16px !important;
    }
    }

    /* adjust slider caption font size and line height on small mobile portrait views */
    @media only screen and (max-width: 480px) {
    .avia_transform .av_slideshow_full.avia-fade-slider .active-slide .avia-caption-content, .avia_transform .av_fullscreen.avia-fade-slider .active-slide .avia-caption-content {
    font-size: 10px;
    line-height: 12px;
    }
    }

    #629634

    Hey Julie,

    Thank you for using Enfold.

    The page id of the “about” page is “page-id-18” and the id of the “group-retirement” is “page-id-2330”. Append that to the existing selectors above. And you don’t need to declare multiple css media queries if they are targeting the same screen width. For example, the code above can be replace with:

    
    @media only screen and (max-width: 480px) {
    /* adjust slider height on small mobile portrait views */
    #full_slider_1 .avia-slideshow-inner, #full_slider_1 img{
    height: 120px !important;
    }
    
    /* adjust caption locations on small mobile portrait views */
    .caption_bottom .slideshow_caption {
    top: 150px !important; left: 1.5px !important;
    bottom: auto !important;
    }
    
    /* adjust slider caption title font size on small mobile portrait views */
    .responsive #top .slideshow_caption h2 {
    font-size: 16px !important;
    }
    
    /* adjust slider caption font size and line height on small mobile portrait views */
    .avia_transform .av_slideshow_full.avia-fade-slider .active-slide .avia-caption-content, .avia_transform .av_fullscreen.avia-fade-slider .active-slide .avia-caption-content {
    font-size: 10px;
    line-height: 12px;
    }
    }
    

    Best regards,
    Ismael

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