Search Results for 'code'
-
Search Results
-
I have tried so many codes on my child theme css to add custom codes. I can’t seem to get it done.
my website is: theceoafrica.com
theme: tdMacro themeCan anyone PLEASE help me figure out how to:
1. To remove the blue link colour after mouse click on each menu item
2. To add a white border on current/active menu item
3. Please i also need to adjust the width of my website. It doesn’t fit into the window.I would really appreciate your help. Thank You.
Hi guys,
I made a redirect php code the the main forum page but i want to display a custom message for each action that is made. So i the user doesn’t enter a password or a username i want to display a message like, you did enter the wrong password or username, please try again.
How do i add this in the php code?
This is the php code i got from the internet for redirecting to the forum page if…. .
add_filter( ‘login_redirect’, ‘login_redirect’, 10, 3 );
add_action(‘login_redirect’, ‘redirect_login’, 10, 3);
function redirect_login($redirect_to, $url, $user) {
if($user->errors[’empty_password’]){
wp_redirect(get_bloginfo(‘url’).’/forum/’);
}
else if($user->errors[’empty_username’]){
wp_redirect(get_bloginfo(‘url’).’/forum/’);
}
else if($user->errors[‘invalid_username’]){
wp_redirect(get_bloginfo(‘url’).’/forum/’);
}
else if($user->errors[‘incorrect_password’]){
wp_redirect(get_bloginfo(‘url’).’/forum/’);
}
else{
wp_redirect(get_bloginfo(‘url’).’/forum/’);
$a = “Hello “;
}
exit;
}Thanks in advance,
Jottem15
Topic: Change the Color Forum-Title
Wordpress 4.6.1
Bbpress 2.5.10 |Hi there,
Today I found here the forum some very useful code to help me change something as colores and sizes.
But there is a component I could’t change, that is the Forum-Title.
Is there anyone that can help with some simple css as how to change the forum title
I thank you in advance.I want to switch the Top Five Topics widget on my site to a Topics With No Replies widget.
I think I’ve found the code referring to the Top Five Topics widget in functions.php – this looks like it:
function rk_top_five_view() {
bbp_register_view( ‘top-five’, __( ‘5 Most Popular Topics’ ), array(
‘meta_key’ => ‘_bbp_reply_count’,
‘posts_per_page’ => ‘5’ ,
‘ max_num_pages’ => ‘1’,
‘orderby’ => ‘meta_value_num’ ),
false );
}add_action( ‘bbp_register_views’, ‘rk_top_five_view’ );
And I think this is the relevant code on the page where the widget is displayed:
[bbp-single-view id="top-five"]According to https://codex.bbpress.org/features/shortcodes/ the code for No Replies is:
[bbp-single-view id=’no-replies’]So I’m guessing that on the page I just need to replace top-five code with no-replies…?
But what about the code in functions.php?
I found this on github:
bbp_register_view(
‘no-replies’,
__( ‘Topics with no replies’, ‘bbpress’ ),
apply_filters( ‘bbp_register_view_no_replies’, array(
‘meta_key’ => ‘_bbp_reply_count’,
‘meta_value’ => 1,
‘meta_compare’ => ‘<‘,
‘orderby’ => ”
)
) );
}Is this what I need? Or should it start with function like the current code I posted at the top?
Please excuse me if I’m missing something obvious here – I’m just the website owner, not a developer.
Thanks in advance 🙂