Forum Replies Created
-
Author
-
joy
ParticipantThank you for your response. The original code didn’t do anything, but I used this instead. However, it still doesn’t work…
COPY CODE#buddypress div#item-nav ul li a { padding: 0px 15px; }
To reiterate, I am trying to make it so that the drop-down menu item is not hidden. In the screenshot of your demo provided earlier, there is only one more icon that is hidden in the drop-down toggle. There already is enough space there to show the icon and get rid of the toggle which is what I am trying to do – can you please help?
joy
ParticipantI figured it out.
COPY CODE// redirect home page if logged in add_action('wp_head','wpmy_redirect_logged_in_users_away_from_home'); function wpmy_redirect_logged_in_users_away_from_home() { if( is_user_logged_in() && ( is_home() || is_front_page() ) ) { wp_redirect('http://www.website.com'); exit; } } //allow redirection, even if my theme starts to send output to the browser add_action('init', 'do_output_buffer'); function do_output_buffer() { ob_start(); }
joy
ParticipantNevermind, I got it. 🙂
COPY CODEfunction remove_pages_from_search($query) { if ($query->is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','remove_pages_from_search');
joy
ParticipantThank you. I tried that but I’m not sure what I’m doing wrong. This is what I used:
COPY CODEfunction filtering_activity_default( $query ) { if ( empty( $query ) && empty( $_POST ) ) { $query = 'action=comments'; } return $query; } add_filter( 'bp_ajax_querystring', 'filtering_activity_default', 999 );
Does that seem correct or do you notice any problems in this?
joy
ParticipantHello, I have some CSS that I used to fix the mobile view. Since the same properties apply I used it for the global as well. However, it’s inconsistent and my margins are funny. The first two topics look fine, but as you scroll, you can see the layout isn’t displaying the same way. Any ideas?
COPY CODE#bbpress-forums li.bbp-body li.bbp-forum-freshness, #bbpress-forums li.bbp-body li.bbp-topic-freshness { color: #bbb; font-size: 12px; text-align: right; padding-top: 30px; font-weight: 700; } #bbpress-forums li.bbp-forum-freshness .bbp-topic-meta, #bbpress-forums li.bbp-topic-freshness .bbp-topic-meta { display: inline; margin-top: -70px; float: right; } #bbpress-forums li.bbp-body li.bbp-forum-freshness a, #bbpress-forums li.bbp-body li.bbp-topic-freshness a { line-height: 0px; margin-top: 15px; }
joy
ParticipantThank you so much. This gave me an excellent base. This is what I ended up using.
COPY CODE@media (max-width: 620px) { span.bbp-topic-freshness-author .bbp-author-name { margin-top: -5px; } #bbpress-forums li.bbp-body li.bbp-forum-freshness, #bbpress-forums li.bbp-body li.bbp-topic-freshness { color: #bbb; font-size: 12px; text-align: start; padding-top: 55px; font-weight: 700; } #bbpress-forums li.bbp-forum-freshness .bbp-topic-meta, #bbpress-forums li.bbp-topic-freshness .bbp-topic-meta { display: inline; margin-top: -70px; } #bbpress-forums li.bbp-body li.bbp-forum-freshness a, #bbpress-forums li.bbp-body li.bbp-topic-freshness a { line-height: 0px; margin-top: 30px; } }
joy
ParticipantI just did this and it worked out fine.
COPY CODE@media screen and (max-width: 620px) { #bbpress-forums .bbp-form input[type="text"] { width: 100%; } }
Thank you.
May 5, 2015 at 05:07 in reply to: how to display social networks to buddypress member profile #57337joy
ParticipantI’ve been successful with part of this code. But for some reason only 4 of my icons show even though the URL’s are complete. Does anyone have any idea what I’m doing wrong here? This is the code I’m using:
COPY CODEadd_action('bp_profile_header_meta','social_links_in_header'); function social_links_in_header () { $social_links = array('facebook','twitter','google+','instagram','linkedin','youtube','pinterest'); foreach( $social_links as $link ) { if ( $data = bp_get_profile_field_data( array('user_id'=>bp_displayed_user_id(), 'field'=>$link )) ) : ?> <a href="<?php echo bp_get_profile_field_data( array('user_id'=>bp_displayed_user_id(), 'field'=>$link)); ?>" target="_blank"><i class="icon-<?php echo $link; ?>"></i></a> <?php endif; } }
The only icons that appear are Facebook, Twitter, Linkedin, and YouTube.
Thanks in advance for any help.
joy
ParticipantNever mind, I figured it out. I put this code in my css file. The z-index was listed at “999” which is why it’s overlapping the header.
COPY CODE#bbpress-forums .hentry div.bbp-reply-content::before, #bbpress-forums .hentry div.bbp-topic-content::before { z-index: 0; }
This seemed to have corrected the issue.
joy
ParticipantThank you. That didn’t work though. I was able to achieve it with this:
COPY CODE#buddypress #friend-list div.action, #buddypress #member-list div.action, #buddypress #members-list div.action { display: none !important; } #buddypress #friend-list .update, #buddypress #member-list .update, #buddypress #members-list .update { display: none !important; }
-
AuthorPosts