title: How to enqueue stylesheets for different WordPress pages
body: <h1>EXPECTED OUTPUT</h1>
  
  <p>I am attempting to enqueue two stylesheets in Wordpress child theme.</p>
  
  <p>I have written <code>front-page.php</code> for which I wish to apply exclusively <code>front-page-style.css</code>.</p>
  
  <p>In addition, I have written <code>header.php</code> to override the parent theme's header. I have written <code>style.css</code> override the parent's stylesheet if it is in conflict.</p>
  
  <h1>ACTUAL OUTPUT</h1>
  
  <p>For neither <code>front-page.php</code> nor all other pages, <strong>neither the parent or the child stylesheet is being applied</strong>.</p>
  
  <h1>CODE</h1>
  
  <h2>FOLDER STRUCTURE</h2>
  
  <pre><code>+-- oceanwp
  +-- oceanwp-child-theme-master
  | +-- functions.php
  | +-- style.css
  | +-- front-page-style.css
  | +-- front-page.php
  | +-- header.php
  </code></pre>
  
  <h2>Functions.php</h2>
  
  <pre><code>function oceanwp_child_enqueue_parent_style() {
      // Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
      $theme   = wp_get_theme( 'OceanWP' );
      $version = $theme-&gt;get( 'Version' );
      // Load the stylesheet
      wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'oceanwp-style' ), $version );
  
  }
  
  function my_theme_enqueue_styles() {
      $parent_style = 'oceanwp-style';
      // if the page is front-page.php, apply front-page-style.css
      if ( is_front_page() ) {
      wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' , '/style-rtl.css' );
          wp_enqueue_style( 'child-style',
              get_stylesheet_directory_uri() . '/front-page-style.css',
              array( $parent_style ),
              wp_get_theme('')-&gt;get('Version')
           );
      }
  
      // if the page is not front-page.php, apply style.css (CHILD) first and style.css (PARENT) second
      if (!is_front_page() ) {
          wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' , '/style-rtl.css' );
          wp_enqueue_style( 'child-style',
              get_stylesheet_directory_uri() . '/style.css',
              array( $parent_style ),
              wp_get_theme('')-&gt;get('Version')
           );
      }
  }
  
  add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles', 'my_custom_scripts' );
  
  ?&gt;
  </code></pre>