Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #298500

    Rad
    Moderator

    Hi there,

    Ah you mean apply it using php code without adding specific ID to the css?

    You can add this at your functions.php

    add_action('wp_head', 'selective_custom_css', 9999);
    
    function selective_custom_css () { 
    $page_ids = array ( 6, 7, 8, 9, 10);
    if ( in_array( get_the_ID(), $page_ids ) ) : ?>
    
    <style>
    .x-navbar-fixed-left-active {
      padding-right: 168px;
      padding-left: 0;
    }
    
    .x-navbar-fixed-left {
      left: auto;
      right: 0;
    }
    </style>
    
    <?php endif; }

    Hope this helps.