Odpowiedź forum utworzona

Zobacz 2 odpowiedzi - od 1 do 2 (z 2 łącznie)
  • Twórca wątku Ryach

    (@ryach)

    ahh dzieki dziala za bardzo skoncentrowalem sie na kombinowaniu zamiast zastosowac najprostrze rozwiazanie

    Twórca wątku Ryach

    (@ryach)

    To by pomoglo gdybym chcial dodac moj wlasny styl ale custom.css jest dodany juz przez theme mystile w pliku admin-setup.php funkcja:

    function woo_output_custom_css() {
    $theme_dir = get_template_directory_uri();
    if ( is_child_theme() && file_exists( get_stylesheet_directory() . '/custom.css’ ) )
    $theme_dir = get_stylesheet_directory_uri();

    function woo_output_custom_css() {
    $theme_dir = get_template_directory_uri();
    if ( is_child_theme() && file_exists( get_stylesheet_directory() . '/custom.css’ ) )
    $theme_dir = get_stylesheet_directory_uri();

    echo „\n” . '<!– Custom Stylesheet –>’ . „\n” . '<link href=”’. esc_url( $theme_dir . '/custom.css’ ) . „\” rel=\”stylesheet\” type=\”text/css\” />” . „\n”;

    } // End woo_output_custom_css()

    Ja chcialbym zmienic to na taka wersje:
    $updated_time = filemtime( '/var/www/…/wp-content/themes/mystile_child/custom.css’ );
    echo „\n” . '<!– Custom Stylesheet –>’ . „\n” . '<link href=”’. esc_url( $theme_dir . '/custom.css’ ) . „?” . $updated_time . „\” rel=\”stylesheet\” type=\”text/css\” />” . „\n”;

    ale juz nie w tym pliku ale dodac to w function.php tak zeby zastapila orginal umieszczony w glownym theme

Zobacz 2 odpowiedzi - od 1 do 2 (z 2 łącznie)