-
Author
-
August 6, 2015 at 21:08 #72068NormanParticipant
Hi the new Revslider update is amazing,
I am wondering how I can add a revolution slider in my member-activity page.
( attached a screenshot for the positioning. It should be full width under the menu but over the update window, if possible)
Revolutionslider creates a shortcodes.
Thanks for help !!
N.Attachments:
You must be logged in to view attached files.August 6, 2015 at 21:32 #72071sharmstrModeratorRevolution slider has been a shortcode since day 1. 🙂
Anyhow, add this to your functions.php file
COPY CODEadd_action('kleo_before_content','slider_on_activity'); function slider_on_activity() { if ( bp_current_component() == 'activity') { putRevSlider("HomeFullwidth"); } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
August 6, 2015 at 21:42 #72073sharmstrModeratorYes. Change it to your slider.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
August 6, 2015 at 21:56 #72075NormanParticipant@sharmstr
one more question:
is it also possible to display the slider ONLY on the member-acitivity page
and not aswell on the user profile pages ?August 6, 2015 at 23:52 #72088sharmstrModeratorI know there is but I dont remember it off the top of my head. Take a look through the buddypress documentation or search their forum. I’m sure its been discussed to death. https://codex.buddypress.org/developer/template-tag-reference/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
August 7, 2015 at 15:46 #72169sharmstrModeratorHey Norman,
This should work
COPY CODEadd_action('kleo_before_content','slider_on_activity'); function slider_on_activity() { if ( bp_current_component() == 'activity' && !bp_is_user()) { putRevSlider("HomeFullwidth"); } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
August 10, 2015 at 17:15 #72442mladasParticipantIs there code that can be added to functions.php file that will enable the revolution slider described above to only be shown on mobile devices? Obviously with other pages, it is easy by simply “checking the box” in the specific row, but that is not an option with the Activity page. Specifically, what is the code to enable the following:
visibility=”hidden-sm,hidden-md,hidden-lg,visible-xs”
Thank you in advance for your help.
August 12, 2015 at 14:49 #72688sharmstrModeratorYou can try echoing out the classes within a span tag
COPY CODEadd_action('kleo_before_content','slider_on_activity'); function slider_on_activity() { if ( bp_current_component() == 'activity' && !bp_is_user()) { echo '<span class="hidden-sm hidden-md hidden-lg visible-xs">'; putRevSlider("HomeFullwidth"); echo '</span>'; } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.