Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #686593

    Hello Kriesi,

    We have a slider on the home page with the below css that works great for adjusting the height of the image and font size for slider heading and caption.
    I am trying to do the same for a slider on another page but I need to adjust the height and font size for this other page (page id 861). I tried adding .page-id-861 at the beginning of the below code but without success.

    What am I missing in the code for page id 861 to ensure that I have slider mobile view adjustments on 2 DIFFERENT pages- 1 being the home page and 2 being a seperate page (page id 861)?

    Thanks

    this is the one that works great:
    /******************
    Home page-title, caption, and slider size when minimized
    ****************/
    @media only screen and (max-width: 425px) {
    .avia-slideshow-inner, .avia-slideshow-inner img {
    height: 200px !important;
    }
    }

    @media only screen and (max-width: 886px) {
    .avia-caption-content {
    font-size: 11px !important;
    }

    .responsive #top .slideshow_caption h2 {
    font-size: 17px !important;
    }
    }

    this is the one that is not working for specific page id 861:
    /******************
    Cohort 1 page-title, caption, and slider size when minimized
    ****************/
    .page-id-861 @media only screen and (max-width: 425px) {
    .avia-slideshow-inner, .avia-slideshow-inner img {
    height: 100px !important;
    }
    }

    .page-id-861 @media only screen and (max-width: 886px) {
    .avia-caption-content {
    font-size: 11px !important;
    }

    .page-id-861 .responsive #top .slideshow_caption h2 {
    font-size: 17px !important;
    }
    }

    #687285

    Hi tlchase,

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #687594

    Sure..again im just trying to make the same mobile view adjustments that I have on the home page slider but on another page on the site (with a few tweaks in size px) so I thought it was a matter of adding the code- .page-id-861 somewhere in the same CSS code that worked for the home page slider.on mobile view.
    Please see below the 2 paqes in question.

    Thank you!!

    #688904

    Hi,

    The css code is not valid. It should be:

    @media only screen and (max-width: 886px) {
        .page-id-861 .avia-caption-content {
            font-size: 11px !important;
        }
    
        .page-id-861 .responsive #top .slideshow_caption h2 {
            font-size: 17px !important;
        }
    }
    
    @media only screen and (max-width: 425px) {
        .page-id-861 .avia-slideshow-inner, .avia-slideshow-inner img {
            height: 100px !important;
        }
    }

    And use standard css media queries. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

    Best regards,
    Ismael

    #689585

    Thank you Ismael, unfortunately that code I have for the second slider (labeled below ‘Cohort I….’) is overriding the landing home page’s CSS (labeled ‘Home…’)

    /******************
    Home page-title, caption, and slider size when minimized
    ****************/
    @media only screen and (max-width: 425px) {
    .avia-slideshow-inner, .avia-slideshow-inner img {
    height: 200px !important;
    }
    }

    @media only screen and (max-width: 886px) {
    .avia-caption-content {
    font-size: 11px !important;
    }

    .responsive #top .slideshow_caption h2 {
    font-size: 17px !important;
    }
    }

    /******************
    Cohort I page-title, caption, and slider size when minimized
    ****************/
    @media only screen and (max-width: 886px) {
    .page-id-861 .avia-caption-content {
    font-size: 11px !important;
    }

    .page-id-861 .responsive #top .slideshow_caption h2 {
    font-size: 17px !important;
    }
    }

    @media only screen and (max-width: 425px) {
    .page-id-861 .avia-slideshow-inner, .avia-slideshow-inner img {
    height: 100px !important;
    }
    }e is overriding the Landing home page’s css for the slider. This is what I have however the second code for

    #691812

    Hi,

    your homepage seems pretty fine to me: http://i.imgur.com/1HfubZY.png

    So what exactly do you want to change now?

    Best regards,
    Andy

    #694351

    Thanks for the reply, it works now =)

    #694453

    Hi,

    Great, glad you got it working :-)

    Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

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