Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #832162

    Hi guys,
    On this page (check site) I have two columns. I adjusted the spacing:

    /*One half*/
    .page-id-1260 div .av_one_half {
    margin-left: 2%;
    width: 100%;
    }

    I added the Page ID to have it applied only on this page. But is this the right way to do it when you don’t want certain css to be apllied on the whole site? I don’t want things to becom all to confused.

    With kind regards,

    Alfredo Silva

    #832177

    Hi guys,

    I thought the code was working. But it’s not. I know applied:

    #top .av-flex-placeholder {
    width: 2.5%!important;
    }

    Now it is working! So guess my problem is solved. But what if I only want to apply it to a certain page? What do I do then?

    #832189

    Hi there!

    When you want code to only apply to a certain page, you can use a Code Block element. For more info, please see: http://kriesi.at/themes/enfold-2017/elements/code-block/

    You can also use Quick CSS, but you have to add the page/post ID like this:

    #top.postid-1260 .av-flex-placeholder {
    width: 2.5%!important;
    }

    The unique page/post number or ID is a class in the body tag, where as top is the body tag’s ID. I hope that’s not confusing! :)

    Please let us know if you have further questions.

    Best regards,
    Sarah

    #833377

    Hi Sarah,

    Thanks!

    #833510

    Hi,

    Glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #833542

    It can be closed.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Am I using ‘Page ID’ in the right way?’ is closed to new replies.