Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #185723

    In the flashlight settings I can add custom sidebars for categories of posts. However this only changes the category index page and not the blog posts themselves within those categories. Is there a way to alter the script so that the posts themselves within each category can have a different right sidebar?

    #187019

    Hi bingisser!

    Finally found a way, open this file /framework/php/function-set-avia-frontend.php:

    Replace lines 805-802:

    		if(is_page($clean_id_array))
    		{
    			return get_the_title();
    		}
    		else if(is_category($clean_id_array))
    		{
    			return single_cat_title( "", false );
    		}

    By this:

    		if(is_page($clean_id_array))
    		{
    			return get_the_title();
    		}
    		else if(is_category($clean_id_array))
    		{
    			return single_cat_title( "", false );
    		}
    		else if(is_single()){
    			return get_the_category()[0]->name;
    		}

    Cheers!
    Josue

    #187412

    Thanks for the reply. When I do this, I have the following error when I load my site. Can I just copy the text or does anything need to be customized?

    If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there.

    Common reasons for this error are:

    Incorrect file/directory permissions: Above 755.
    In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through cPanel’s File Manager.

    Incorrect Apache directives inside .htaccess file.
    Make sure you have not specified unsupported directives inside the local .htaccess file. Such include PHP settings and Apache module settings.

    #187433

    Hi,

    Can you create an administrator account (WordPress) and post it here as a private reply?

    Regards,
    Josue

    #187438
    This reply has been marked as private.
    #187441

    Hey!

    Revert it again please, i think i found the error.

    Regards,
    Josue

    #187443
    This reply has been marked as private.
    #187454
    #187455
    This reply has been marked as private.
    #187460

    You are welcome, glad we could help.

    Regards,
    
Josue

    #209521

    Is such a solution also possible with the enfold theme? I am thinking of switching and would still like this. However I am not sure what you ended up changing in the end. Best regards,
    Martin

    #209549

    Hey!

    I applied this code. Regarding doing this in Enfold, im not sure because both themes are quite different, but you could give it a try, create another topic in the Enfold forum regarding that.

    Best regards,
    Josue

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.