I can see that the style sheet for my plugin is not loading.
Have you tried amending the css location? :
try amending the “css location” tab above
check the activate box and set the location to
wp-content/uploads/
Yes I tried ammending the css location as you described in the not working section
I can see that the style sheet is not loading, and I can see that style sheets from other plugins are loading.
I can also see the style sheet has been created at
https://apo-koinou.gr/wp-content/uploads/bspstyle.css
so it is being created but not ‘enqueued’.
I cannot say why – it is very strange.
are you able to add lines to your child theme functions.php – that is do you know how to do this ? don’t worry if not, but quicker if you can
Yes I can add lines to the child theme functions.php
ok, can you try adding this
function rew_enqueue_css() {
global $bsp_css_location ;
$bsp_ver = get_option('bsp_version') ;
//register style so that it runs after bbpress (bbp-default)
if (!empty ($bsp_css_location ['activate css location']) && !empty($bsp_css_location ['location'])) {
$location = $bsp_css_location ['location'] ;
// if it starts with '/' - remove
if (0 === strpos($location, '/')) {
$location = substr( $location, 1, strlen($location) ) ;
}
// if it doesn't end with a '/' add one
if (substr( $location, strlen($location)-1, strlen($location) ) !== '/') {
$location = $location.'/' ;
}
$location = home_url().'/'.$location ;
wp_register_style('rew', $location.'bspstyle.css', array( '' ), $bsp_ver, 'screen');
}
else wp_register_style('rew', plugins_url('css/bspstyle.css',dirname(__FILE__) ), array( '' ), $bsp_ver, 'screen');
wp_enqueue_style( 'rew');
}
add_action('wp_enqueue_scripts', 'rew_enqueue_css');
I did as you instructed, unfortunately no effect again.
ok, something is preventing my plugin from loading the css file – I cannot say what.
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
https://en-gb.ww.wp.xz.cn/plugins/health-check/