-
Author
-
May 12, 2018 at 01:12 #197472TheDream18Participant
Hi,
i want to add “domain.com/all-activity” to header menu. i used bellow code. but don’t work
if ( bp_is_active( ‘activity’ ) ) {
$profile_setting[‘activity’] = ‘
<li><a href=”‘
. ‘all-activity/”>’ . __( “all Activity”, “buddypress” )
. ‘</a></li>
‘;
}
problem it always kind of:
domain.com/ current-open-page /all-activity
how do i correct the code? for complete display only domain.com/all-activity
thanks
May 12, 2018 at 16:50 #197491Kieran_SQModeratorHi,
I am not sure why you have PHP for a static link, is there more to the requirements than stated above?
If not you can simply use HTML like so
<li><a href="/all-activity/">All Activity</a>
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
Attachments:
You must be logged in to view attached files.May 12, 2018 at 22:00 #197552TheDream18ParticipantHi,
I have link domain.com/all-activity from
==>buddypress setting/page/choose activity page / i create and choosed “all-activity”By defaul sweettheme only add domain.com/username/activity (personal page)
Now i want to add url domain.com/all-activity to Top of $profile-menu, what code should i add
thanks
May 12, 2018 at 22:07 #197553Kieran_SQModeratorHi,
In that case you need to apply the HTML I provided above in the same location where you made your other changes to this menu.
From line 126 onward of the general-header.php file in your SweetDate Child theme
COPY CODEif ( bp_is_active( 'activity' ) ) { echo '<li><a href="/all-activity/">All Activity</a>'; }
Add the above code in the position you wish it to appear in the menu.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
May 13, 2018 at 15:25 #197579Kieran_SQModeratorHi,
Please paste the code you’re trying to use here, using the code tags from the reply area (important), so I can correct the errors.
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
May 13, 2018 at 16:23 #197591Kieran_SQModeratorHi,
I will refer this ticket to one of developers so that they can provide you with the correct PHP to generate the logout URL you require.
There are no security concerns with the current method as it is done in the WordPress way. Where a URL, domain or path has a suffix of :number it refers to a port number for communication and is generated at the server level – this is not something to be concerned about.
One of our developers will be in touch with you as soon as they can, Monday to Friday, East European Time.
Thank you for your patience,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
May 14, 2018 at 19:00 #197728RaduModerator443 it’s the port for the https connection, not sure from where it comes, did you get same logout url with default theme ? anyway the hostname it’s get from the server so our theme not generates that.
If you have any wp plugin “force ssl” or similar, deactivate it, also if you have browser extension like “https everywhere” set off and retry.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.