Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9083765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:51:00+00:00 2026-06-16T20:51:00+00:00

I have done the following In my code: /** * Enqueue scripts and styles

  • 0

I have done the following In my code:

/**
 * Enqueue scripts and styles
 */
function design_scripts() {
    wp_enqueue_style( 'style', get_stylesheet_uri() );

    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
        wp_enqueue_script( 'comment-reply' );
    }

    wp_enqueue_script( 'navigation', get_template_directory_uri() . 'js/navigation.js', array( 'jquery' ), '20120206', true );
}
add_action( 'wp_enqueue_scripts', 'design_scripts' );

But somehow the function adds a dot to the url like this:

http://domain/wp-content/themes/design/./style.css

Anybody knows why? Havent been able to figure it out yet myself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:51:01+00:00Added an answer on June 16, 2026 at 8:51 pm

    Try this:

    wp_enqueue_style( 'style', get_bloginfo('stylesheet_url') );
    

    On a side note, you don’t need to enqueue your theme’s normal Stylesheet if this is a theme you’re building. Adding it directly in your header is fine.

    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started using jQuery and although following code gets the job done,
The following code is a what I have done in order to show a
I have done following code in Viewdid Load for creating multiple switch programmatically. float
I have done the following code for a list of pics, when the user
I have done the layout expand animation with the following code. It works fine
I have done the following code structure and doing addClass item_box_popup and removeClass item_box
I have done the following code in JavaScript to put focus on the particular
i have done the following code in order to fill a tuple with user
I have done the following code. #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h>
I have done following code for creating multiple UISwitches programmatically and handle particular switch.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.