-
Author
-
November 29, 2016 at 00:50 #145500RoaderParticipant
Content Aware Sidebars does not work.
Please look at the video.
–––––
Maybe a solution: How I can add a New Sidebar inside ?
By default SweetDate has: Main Sidebar, Footer 1, 2, 3 and 4, Shop Sidebar, etc.
But, If you can tell me how, I could add a New Sidebar for: Profile, etc. Only I need the code the replicate Main Sidebar but only for Profile, etc. I did try, but does not work.
function sweetdate_widgets_init() {
register_sidebar( array(
‘name’ => __( ‘Main Sidebar’, ‘kleo_framework’ ),
‘id’ => ‘sidebar-1’,
‘description’ => __( ‘Default sidebar’, ‘kleo_framework’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”widgets clearfix %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h5>’,
‘after_title’ => ‘</h5>’,
) );
Attachments:
You must be logged in to view attached files.November 29, 2016 at 02:06 #145502RoaderParticipantExample:
function.php ==> Okey, with this code Profile Widget appears.
COPY CODEregister_sidebar(array( 'name' => 'Profile Widget', 'id' => 'profile-1', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', ));
But, when I put this in Members / Single / Activity-wall.php or Whatever, Not widget appears.
COPY CODE<?php if (is_active_sidebar( 'profile-1' )) { dynamic_sidebar( 'profile-1' ); }?>
November 30, 2016 at 09:50 #145616LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
December 1, 2016 at 17:36 #145814RaduModeratorHi,
Replace the code from functions.php with thisCOPY CODEfunction register_sidebar_activity() { register_sidebar(array( 'name' => 'Profile Widget', 'id' => 'profile-1', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); } add_action('bp_loaded', 'register_sidebar_activity');
It works I’ve tested.
You can do the same for all your sidebar needs for every bp template, you can add to sa same function a new register_sidebar array.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 2, 2016 at 22:32 #145953RoaderParticipantHi Radu. This code:
function register_sidebar_activity()
{
register_sidebar(array(Does not work. Profile Widget does not appears in Widgets.
I did put your code in functions.php
And, after that, what is the other code for obtain this widget or sidebar only for Profile (activity, friends, etc…)?
December 5, 2016 at 14:32 #146072RaduModeratorAn from example another kind of widget appears ? other than profile widget ?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 5, 2016 at 23:02 #146135RoaderParticipantHi Radu. With your code function register_sidebar_activity()
Not appear any widget.I need a widget only for Profile.
Or the code for obtain a functional widget for whatever area (friends, messages, etc.) that I need (in profile).
If you have, please, send me that.
December 6, 2016 at 19:53 #146231RaduModeratorHi,
The code works on my localhost install I’ve tested.
I don’t have such as codes already made…
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 7, 2016 at 02:38 #146264RoaderParticipantHi Radu. This code:
function register_sidebar_activity()
{
register_sidebar(array( ………….Test on localhost:
Does not work. Profile Widget does not appears in Widgets.Solution: Create a Global* Sidebar for Profile (*friends, messages, notify…),
of the same way that you created a Main Sidebar, Footer 1, 2, 3, 4…Other problem, but with Creating Sidebars from Appearance…
In Blog Page you can see KLEO Recent Posts and Groups Widget, okey!
But, when you click on the Post Link for see a single post, there are Not Widgets.
Why? Because this Sidebars only works for specific Pages, not for Singles: Posts, Entries, Categories, etc.SO PLEASE! If I create a new Sidebars, f. exp. “Activity”, this new Sidebar needs to be Global for Activity including Single.
Fix it!
Attachments:
You must be logged in to view attached files.December 7, 2016 at 17:42 #146349RaduModeratorHi,
I saw in this case it means that for that custom code needs some additional time to investigate and testing, for the moment personally i don’t have time to do this for you (it’s custom, support doens’t cover this kind of thigs) please use this method instead :
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 7, 2016 at 23:38 #146367RoaderParticipantHi Radu!
Buddypress Sidebar is Very OutDate! :-/
December 8, 2016 at 17:21 #146443RaduModeratorGive a try
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 8, 2016 at 22:18 #146464RoaderParticipantDoes not work, because this plugin is Old and Outdate!
So, please, send me the code for duplicate Main Sidebar, but only for Profile…
December 8, 2016 at 22:20 #146465RoaderParticipantAnd what is the solution for: Custom Sidebar f. ex. Blog / Single Post
You know, Custom Sidebar in Single Post, does not appear.December 9, 2016 at 17:47 #146575RaduModeratorHi again,
Remove all codes recording the sidebars from this topic and use those
COPY CODEfunction register_sidebar_activity() { register_sidebar(array( 'name' => 'Profile Widget', 'id' => 'profilewidget', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); } add_action('wp_loaded', 'register_sidebar_activity');
Then you will have to upload this file sidebar.php into child theme
Explanations :
This should be enough to understand how it works, i think we can close this ticket because solution it’s provided
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files. -
AuthorPosts
You must be logged in to reply to this topic.