Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #789240

    Applying CSS to a single page has now stopped working:

    If i apply the code in the Private section to the quick css or style it does not work, If i take of the page number ID number off it does work

    No cache plugins are turned on for testing, They are turned back on now though as they had no effect.

    Stuck on this one as i don’t want to apply apply custom CSS to an element on every page.

    Its not just the Full width button thats not taking the page id its any CSS i add with a page ID, without page Id it works fine.

    UPDATE: I am using a custom post type, when tested on a normal page it works fine, any idea how to apply on a custom post type?

    Not sure why it makes any difference? Its still got a page id?

    #789259

    Hey mmsdev,
    that page is .page-id-1108 not .page-id-6780 :)

    Best regards,
    Mike

    #789673

    No thats the web site home page!

    It is the same on any page that is using a custom post type..

    This is the page it does not work on..

    The custom post type is called “software”

    #789682

    Hi mmsdev,

    For that page, the class is postid-48111.

    Can you try to use that class instead? If it doesn’t take effect, please try adding the !important rule.

    If that still doesn’t work, please provide us with temporary admin access to we can take a closer look.

    Best regards,
    Sarah

    #789727

    So i have set up a new page (post type) to demo the problem in a basic format.

    EG:

    I want to change the size of the text on the fullwidth button to a 28

    The page / post number is 48734

    The code i am applying in the quick css is:

    .page-id-48734 .avia-button-wrap span.avia_iconbox_title {
    font-size: 28px;
    }

    I have also tried:

    .post-id-48734 .avia-button-wrap span.avia_iconbox_title {
    font-size: 28px !important;
    }

    Nothing changes – unless i remove the the .page-id-48734 which does work then it is applied to the whole site.

    #789728

    Hi,

    Please use the code as following instead

    .postid-48734 .avia_iconbox_title {
        font-size: 20px;
    }

    Also, if you are using ALB, you can add Code Block element to your page/post and add following code inside it

    
    <style>
    .avia_iconbox_title {
        font-size: 20px;
    }
    </style>
    

    Best regards,
    Yigit

    #789738

    Thats get and works, can i also increase the size of the icon in the button to now match the new size of the font?

    #789741

    Hi,

    Please add following code to Quick CSS as well

    .postid-48734 .avia_button_icon {
        font-size: 20px;
    }

    Best regards,
    Yigit

    #789766

    You truly are amazing..

    Thanks so much Yigit..

    #789771

    Hi,

    You are welcome! We are always happy to help :)
    Let us know if you have any other questions or issues and enjoy the rest of your day!

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Changing CSS on a specific page only’ is closed to new replies.