-
AuthorPosts
-
September 14, 2016 at 9:02 pm #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;
}
}September 16, 2016 at 7:59 am #687285Hi tlchase,
Could you post a link to the site in question so that we can take a closer look please?
Best regards,
RikardSeptember 16, 2016 at 4:19 pm #687594Sure..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!!
September 20, 2016 at 4:25 am #688904Hi,
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,
IsmaelSeptember 21, 2016 at 2:09 am #689585Thank 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 forSeptember 26, 2016 at 5:15 pm #691812Hi,
your homepage seems pretty fine to me: http://i.imgur.com/1HfubZY.png
So what exactly do you want to change now?
Best regards,
AndyOctober 2, 2016 at 7:46 pm #694351Thanks for the reply, it works now =)
October 3, 2016 at 6:54 am #694453 -
AuthorPosts
- You must be logged in to reply to this topic.