Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Volkans Adventures

    (@volkans-adventures)

    I actually sorted it. It was the autoptimize plugin causing the problem

    You could in that case configure AO not to aggregate the header/footer CSS or exclude the change-avatar page from being optimized by using this code;

    add_filter('autoptimize_filter_noptimize','noptimize_avatar',10,0);
    function noptimize_avatar() {
    	if (strpos($_SERVER['REQUEST_URI'],'profile/change-avatar')!==false) {
    		return true;
    	} else {
    		return false;
    	}
    }

    Hope this helps,
    frank

    Thread Starter Volkans Adventures

    (@volkans-adventures)

    Hi Frank;

    Thank you so much for your answer. I would love to be able to continue using AO as it is a great plugin. I would really appreciate if you could tell me where to put this code. Sorry, I am quite inexperienced when it comes to codes but I can manage if you explain me where to put the code.

    Thank you so much,
    Volkan

    The easiest way is to install the code snippets plugin and use that to create a snippet that is active in the front-end only Volkan.

    frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Top nav bar and footer not showing on BudyPress change avatar page’ is closed to new replies.