Title: Double slash breaks some functionality
Last modified: August 4, 2021

---

# Double slash breaks some functionality

 *  Resolved [creativecatapps](https://wordpress.org/support/users/creativecatapps/)
 * (@creativecatapps)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/double-slash-breaks-some-functionality/)
 * Hi,
 * In this plugin you are using the following as a constant:
    `define( 'DISPLAY_POST_TYPES_URL',
   plugin_dir_url( __FILE__ ) );`
 * This generates the plugin directory URL, with a trailing slash.
 * In frontend > inc > class-loader.php, you use code:
 *     ```
       wp_enqueue_style(
       	'dpt-style',
       	DISPLAY_POST_TYPES_URL . '/frontend/css/style.css',
       	array(),
       	DISPLAY_POST_TYPES_VERSION,
       	'all'
       );
       ```
   
 * This creates a duplicate trailing slash, which for most servers isn’t an issue.
   However, on other servers, it won’t load the files called with the double slash.
 * Can you fix this please, as it’s a great plugin otherwise!
 * Thanks,
    Emma
    -  This topic was modified 4 years, 10 months ago by [creativecatapps](https://wordpress.org/support/users/creativecatapps/).
      Reason: making code block more readable

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

 *  Plugin Author [Veda](https://wordpress.org/support/users/vedathemes/)
 * (@vedathemes)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/double-slash-breaks-some-functionality/#post-14736423)
 * Hi there,
 * Thanks a lot for informing about this issue. I will certainly look into it and
   make necessary changes in the next update.
    I will update you on that.
 * Thanks again.
 *  Plugin Author [Veda](https://wordpress.org/support/users/vedathemes/)
 * (@vedathemes)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/double-slash-breaks-some-functionality/#post-14766970)
 * Hi there,
 * As discussed, I have made necessary changes in the latest update. Kindly check
   and inform if anything else needs to be done.
 * I am closing this ticket for now. However, feel free to comment on this ticket
   or create a new ticket if any other help is required.
 * Thanks,

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

The topic ‘Double slash breaks some functionality’ is closed to new replies.

 * ![](https://ps.w.org/display-post-types/assets/icon-256x256.png?rev=2144506)
 * [Display Post Types - Post Grid, post list and post sliders](https://wordpress.org/plugins/display-post-types/)
 * [Support Threads](https://wordpress.org/support/plugin/display-post-types/)
 * [Active Topics](https://wordpress.org/support/plugin/display-post-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-post-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-post-types/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Veda](https://wordpress.org/support/users/vedathemes/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/double-slash-breaks-some-functionality/#post-14766970)
 * Status: resolved