-
Author
-
December 8, 2015 at 19:48 #91934sashaDParticipant
Hello, i have three different custom post types and three different archives for these. I already have several different sidebars which are basically relevant menus. So i want my ‘archive1’ be allocated ‘sidebar1’, and ‘archive2’ be allocated ‘sidebar2’, i.e. show a different sidebar to a different archive.
Could you please point me in the right direction, perhaps where and how to edit something. Currently all custom archiv phps are just copies of default kleo archive php.
Thank you in advance.
regards
Sasha
December 8, 2015 at 20:15 #91948RaduModeratorHi,
I think this will help : https://archived.seventhqueen.com/forums/topic/create-custom-sidebar
Let me know
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 8, 2015 at 21:03 #91960sashaDParticipantHi Radu,
thank you for a quick response, I have tried this and it works but i have the same issue as the original guy asked. which is:
1. is it possible to get rid of the original sidebar? because it still shows, (even when in theme options i chose 1 column right- i see two sidebars, if i select 2 columns right- i see three sidebars, if i select full width, it doesn’t work at all – a whole bunch of white space shown below the items in archive)
2. is it possible to ensure the bar appears on the left correctly.i attached img just in case to clarify my situation
Attachments:
You must be logged in to view attached files.December 9, 2015 at 15:37 #92091RaduModeratorHi,
Can you please try to revert changes and then to try to use this plugin ? https://wordpress.org/plugins/content-aware-sidebars/
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 9, 2015 at 17:16 #92116sashaDParticipantHi Radu,
I tried this plugin yesterday, and did not like it. Considering that whole website is done and all sidebars already allocated, i dont want to add a whole other plugin and recreate same sidebars again just for the three archives. I would rather edit the custom archive templates, i just thought there is a simple known edit for current kleo archive of posts, as there have been many people asking how to set custom sidebar to archive.Previous code snippet worked, just not 100%, i would rather try to edit that or the whole archive, are there any other known solutions to this?
Best regards,
SashaDecember 10, 2015 at 15:02 #92375RaduModeratorHi,
Can you please provide admin credentials and FTP to take a look ?
cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 10, 2015 at 15:50 #92399sashaDParticipantHi, I have been working on local version, i will upload live to test domain, and then provide you with details, by the end of today.
many thanks
SashaDecember 10, 2015 at 18:08 #92428RaduModeratorOk,
Just reply to this ticket.
Have a nice week
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 11, 2015 at 16:51 #92634RaduModeratorHi,
I’ve used this code instead
COPY CODEfunction add_before_my_siderbar() { ?> <?php if (is_archive()) { ?> <div class="sidebar sidebar-main col-sm-3 sidebar-3rr"> <div class="inner-content widgets-container"> <?php dynamic_sidebar('for home'); ?> </div><!--end inner-content--> </div><!--end sidebar--> <?php } ?> <?php } add_action( 'get_sidebar', 'add_before_my_siderbar' );
The problem was this class "sidebar-3rr"
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 11, 2015 at 19:04 #92692RaduModeratorHi again,
It takes to much time for me to assist you to do this custom work, i suggest you to hire a developer that will helps you with your query.
Please try to use this plugin, it should be ok with what you need https://wordpress.org/plugins/easy-custom-sidebars/
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.