Search Results for 'code'
-
Search Results
-
Topic: Wierd CSS – please advise
Hi, I am using the following code to hide my menu/navbar and search form from my site.
‘/* Remove nav bar and search form */
.page #nav-bar {
display: none;
}.page #s {
display: none;
}’It seems to work wonders on all pages except BBPress pages.
Now when I set my permalinks to “Default” the navbar and search form are removed on bbpress pages, but when I have them to anything else, the navbar shows up again (but only on bbpress pages).
Does anyone have an explanation for this?
Or can someone point me in the direction of how to remove it without having to have “Default” permalinks set (which I can’t due to buddypress)im trying to put buddypress x-profile fields in bbpress on loop-single-reply.php after the author role and avatar
I have created one called Location
my function to display it is
<div class="bbp-usr-location"><?php if ( bbp_is_topic_anonymous() ) { echo "<br>Guest Post"; } elseif ( bbp_is_reply_anonymous() ) { echo "<br>Guest Post"; } else { $user_location = xprofile_get_field_data( 'Location', ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) ); echo 'Location: ' . $user_location; } ?></div>I just want to not display it if its not filled in on buddypress
Any Help?
Hello All !
I need to list the last 8 topics in this widgets, and have a link to the next page of 8 topics, and so on.It would be like a pagination for every 8 topics.
I think the file is widgets.php in lines :
case 'newness' :
default :
$topics_query = array(
'post_type' => bbp_get_topic_post_type(),
'post_parent' => $settings['parent_forum'],
'posts_per_page' => (int) $settings['max_shown'],
'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ),
'ignore_sticky_posts' => true,
'no_found_rows' => true,
'order' => 'DESC'
);
I know that ‘posts_per_page’ show the last topics, in my case 8, but i dont know how to access to 8 before.
Any help or idea please?
Hi, I am using the latest versions of both WP and BBPress.
My problems are that when I try to add stuff to my style.css, my BBPress pages just don’t seem to follow them…
Here is an example:
>> Remove menu/nav bar and search form from all pages (style.css)/* Remove nav bar and search form */ .page #nav-bar { display: none; } .page #s { display: none; }The code works on all other pages (BuddyPress ones included), just not any BBPress pages..
Does anyone have any ideas as to why?I am no coder or expert so this has totally thrown me lol.