Reply 356673 to: External Stylesheet not working as expected

Avatar: Rose Tyler
Rose Tyler
Support staff
May 15, 2023 at 09:46

Hello Invis,

Thank you for your response.

In order to apply styles exclusively to My-account page, you need to add the following code to wp-content\themes\xstore-child\functions.php:

function my_child_styles() {
  if (is_page('my-account') || is_page('my-account-2')) {

    wp_enqueue_style('child-bootswatch-bootstrap-style', 'https://cdnjs.cloudflare.com/ajax/libs/bootswatch/4.6.0/flatly/bootstrap.min.css');
    wp_enqueue_style('child-jquerysctipttop-style', 'https://www.jqueryscript.net/css/jquerysctipttop.css');
  }
}
add_action('wp_enqueue_scripts', 'my_child_styles', 101);

Unfortunately, FTP access you provided is no longer valid. Have you changed them?
You may use any third-party resources, however, we are not responsible for their performance.
We hope it is clear now.

Best Regards,
8Theme’s Team

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.