• Resolved Guido

    (@guido07111975)


    Hi,

    I would like to know why you’re using wp_print_styles instead of wp_enqueue_scripts for the frontend styling?

    It’s located in file features > functions(.php):

    // include the stylesheet
    add_action( 'wp_print_styles', 'wppb_add_plugin_stylesheet' );

    This way the styling isn’t added to the wp_head() function, I guess..

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Madalina Ruzsa

    (@madalinaruzsa)

    Hi @guido07111975,

    We are still using wp_print_styles due to backwards compatibility. The wp_enqueue_scripts didn’t exist all along in WordPress.

    Thread Starter Guido

    (@guido07111975)

    Time to update this piece of code, because wp_enqueue_scripts is already added in WP 2.8.0… so many years ago 😉

    And PB supports WP 3.1 and above, according to your readme:
    Requires at least: 3.1

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Loading the frontend styling’ is closed to new replies.