Multisite – Display different header content based on which site is accessed

You can use options to customize this for every site. Options are stored separately for each site. So, inside your header you can do something like <?php $login_link = get_option(“worduoso_login_link”); $login_text = get_option(“worduoso_login_text”); ?> and then print it like this <?php if($login_link && $login_text): ?> <div class=”added-header”><a href=”https://wordpress.stackexchange.com/questions/273810/<?php echo $login_link; ?>”><?php echo $login_text; ?></a></div><?php endif; … Read more

how add class in containers

I don’t understand using rigid widgets having the ability to edit the theme. So, I call attention to the wp_nav_menu() for flexibility improvement. functions.php: <?php // register menu in `side_menu` register_nav_menu( ‘side_menu’, __( ‘Sidebar’, ‘theme-slug’ ) ); Now you can build your own menu under Appearance -> Menus. Use wp_nav_menu() function to display your menu … Read more

Vertical Menu for one page only

You’ll want to search your theme files for the part of the page template that is controlling those classes, likely page.php would be a good place to start. Then once you find the part you think is controlling the output, try adding: if( is_page(24331) ) { echo ‘vertical-header’; } For example: <div id=”page” class=”layout-fullwidth <?php … Read more

user update profile for custom code

I can see $topselected= get_the_author_meta( ‘user_top’, $user->ID ); , here you are using “user_top” as the meta_key but while updating you are using “user_chapter” update_usermeta( $user_id, ‘user_chapters’, $_POST[‘user_chapters’] ); Whatever name you are providing in <select name=”user_top” id=”user_top”>, should be used in $_POST[”] So here you are using “user_top” as your select name, so it … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)