• Resolved skister77

    (@skister77)


    I am having difficulty installing a Style.css. Here is what I have done so far:

    In this folder:

    wp-content\themes\twentytwentyfile

    Added this to the Functions.php file in the twentytwentyfile folder

    wp_enqueue_style( ‘style’, get_stylesheet_uri() );

    Header in the Style.css file




    /*

    Theme Name: Twenty Twenty-Five

    Theme URI: 'https://wordpress.org/themes/twentytwentyfive/'

    Author: XXXXXX

    Author URI: https://example.com

    Description: custom WordPress theme.

    Version: 1.0

    Requires at least: 5.0

    Tested up to: 5.4

    Requires PHP: 7.0

    License: GNU General Public License v2 or later

    License URI: https://www.gnu.org/licenses/gpl-2.0.html

    Text Domain: twentytwentyfive

    */

    What am I missing?

    Thanks in advance for your help

    Mark

    • This topic was modified 3 weeks, 2 days ago by skister77.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Looks like you are using curly quotes. Use this:

    function mytheme_enqueue_styles() {
    wp_enqueue_style( 'mytheme-style', get_stylesheet_uri() );
    }
    add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_styles' );

    Also, your folder name (twentytwentyfile) does not match your theme URI

    https://wordpress.org/themes/twentytwentyfive/

    Hopefully this fixes your issue.

    Thread Starter skister77

    (@skister77)

    Thanks that worked

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

You must be logged in to reply to this topic.