• Resolved soufrakias

    (@soufrakias)


    Hi, the plugin is not affecting the CSS styles in my website.
    I use Ekko theme.

    It did manage to change the order of the forums by freshness but when i try to change the styles it does nothing.

    Yes, i tried everything in the “not working” section and also these three phrases appear in a green background:

    No bbpress files have been changed in the theme
    No bbpress files have been changed in the parent theme
    This sentance should have a green background

    I do not use any caching plugin and i tried to clear cache in every change I make and still nothing happens.

    Everything in the website is updated in its latest version.

    Thank you for your time

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Robin W

    (@robin-w)

    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/

    Thread Starter soufrakias

    (@soufrakias)

    Yes I tried ammending the css location as you described in the not working section

    Plugin Author Robin W

    (@robin-w)

    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

    Thread Starter soufrakias

    (@soufrakias)

    Yes I can add lines to the child theme functions.php

    Plugin Author Robin W

    (@robin-w)

    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');
    Thread Starter soufrakias

    (@soufrakias)

    I did as you instructed, unfortunately no effect again.

    Plugin Author Robin W

    (@robin-w)

    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/

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

The topic ‘CSS changes not happening’ is closed to new replies.