Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About jimwise68

  • Rank
  1. I have resolved this issue now, so can an Admin delete this post please. thanks
  2. the LoveStory theme header.php code is: <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div class="site-wrap"> <div class="header-wrap"> <header class="site-header container"> <div class="site-logo left"> <a href="<?php echo SITE_URL; ?>" rel="home"> <img src="<?php echo ThemexCore::getOption('logo', THEME_URI.'images/logo.png'); ?>" alt="<?php bloginfo('name'); ?>" /> </a> </div> <!-- /logo --> <div class="header-options"> <?php if(is_user_logged_in()) { ?> <a href="<?php echo wp_logout_url(SITE_URL); ?>" class="button secondary"><?php _e('Sign Out', 'lovestory'); ?></a> <a href="<?php echo ThemexUser::$data['user']['profile_url']; ?>" class="button"><?php _e('My Profile', 'lovestory'); ?></a> <?php } else { ?> <a href="#" class="button secondary header-login-button"><?php _e('Sign In', 'lovestory'); ?></a> <?php if(get_option('users_can_register')) { ?> <a href="<?php echo ThemexCore::getURL('register'); ?>" class="button"><?php _e('Register', 'lovestory'); ?></a> <?php } ?> <?php } ?> </div> <!-- /options --> <nav class="header-menu right"> <?php wp_nav_menu( array( 'theme_location' => 'main_menu','container_class' => 'menu' ) ); ?> <div class="mobile-menu hidden"> <div class="select-field"> <span></span> <?php ThemexInterface::renderSelectMenu('main_menu'); ?> </div> </div> </nav> <!-- /menu --> </header> The Themify Basic theme header code is: <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php themify_body_start(); // hook ?> <div id="pagewrap" class="hfeed site"> <div id="headerwrap"> <?php themify_header_before(); // hook ?> <header id="header" class="pagewidth" itemscope="itemscope" itemtype="https://schema.org/WPHeader"> <?php themify_header_start(); // hook ?> <hgroup> <?php echo themify_logo_image('site_logo'); ?> <?php if ( $site_desc = get_bloginfo( 'description' ) ) : ?> <?php global $themify_customizer; ?> <div id="site-description" class="site-description"><?php echo class_exists( 'Themify_Customizer' ) ? $themify_customizer->site_description( $site_desc ) : $site_desc; ?></div> <?php endif; ?> </hgroup> <nav itemscope="itemscope" itemtype="https://schema.org/SiteNavigationElement"> <div id="menu-icon" class="mobile-button"></div> <?php if ( function_exists( 'themify_custom_menu_nav' ) ) { themify_custom_menu_nav(); } else { wp_nav_menu( array( 'theme_location' => 'main-nav', 'fallback_cb' => 'themify_default_main_nav', 'container' => '', 'menu_id' => 'main-nav', 'menu_class' => 'main-nav' )); } ?> <!-- /#main-nav --> </nav> <?php if(!themify_check('setting-exclude_search_form')): ?> <?php get_search_form(); ?> <?php endif ?> <div class="social-widget"> <?php dynamic_sidebar('social-widget'); ?> <?php if(!themify_check('setting-exclude_rss')): ?> <div class="rss"><a href="<?php if(themify_get('setting-custom_feed_url') != ""){ echo themify_get('setting-custom_feed_url'); } else { echo bloginfo('rss2_url'); } ?>">RSS</a></div> <?php endif ?> </div> <!-- /.social-widget --> <?php themify_header_end(); // hook ?> </header>
  3. Hi All I have created a wordpress multisite and have had to use two separate themes to make all functionality work and give the impression/consistency of one site. The only trouble I have is that the sub site theme (Themify Basic) has a burger icon and slide menu when displaying on mobiles responsively. First image below is how it is displaying. I need to make it look like the second image, which is the way the mobile menu is coded for my main theme (Themex LoveStory) There are obviously many files that are used to create this and I have no idea where to start to change it. Again, this is probably something very easy to resolve for someone who knows what they are doing. Unfortunately, it is out of my depth at the moment. thanks for any help or advice. Jim
  4. Hi Requinix that solved it, i edited my code to: <div> <?php $current_user = wp_get_current_user(); ?> <a href="https://mainsite.co.uk/profile/<?=$current_user->user_login?>" class="button primary"><?php _e('My Profile', 'mytheme'); ?></a> </div> ...and it works perfectly
  5. haha you say it so matter of factly, been trying to do that and couldn't get it to work. thank you for helping with my issue, have a wonderful xmas
  6. HI requinix, I'm just trying to link back to the mainsite to view profile. I don't care if it is a link or redirect, whichever is easier to do from the button.
  7. This is probably a very simple fix for someone but I can't get it to work. I have a wordpress multisite using a bought theme (which has a basic chat function) and a bought chatroom plugin. The theme and plugin clash and the result is a couple of functionalities on the theme don't work. As a work around I crated the multisite so everything works as it should. the problem I have is when trying to go back to main site from sub-site to access user profile. I have found this piece of code, which apparently should work but it doesnt. Can anybody throw any light onto why not. <?php $current_user = wp_get_current_user(); if ( is_user_logged_in() ) { wp_redirect( 'https://mysite.co.uk/profile/'.$current_user->user_login.); class="button"><?php _e('My Profile', 'mytheme'); ?> exit; } else { echo "https://mysite.co.uk"; } ?> the profile page url is made on the fly and is listed as: https://mysite.co.uk/profile/username Any help greatly appreciated it.
  8. Merry Xmas everyone. I am on the steep learning curve to php and css as I want to understand and build my own websites from scratch. I currently use wordpress and (as I'm sure most people have) discovered clashes and issues I want to address but dont know where to start. So initially I will be taking much more than I will be given, but hoping that will change in 2019. All the best Jim
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.