This topic has 19 replies, 2 voices, and was last updated 11 years by Laura.

  • Author
  • #48040
     TammyWashington
    Participant

    We are trying to determine how to modify the link for the “Create New Account” button. We have successfully changed the link for the “signup” button in the header.php file from looking at previous topics in this forum. We have attached a screen shot.

    #48067
     Laura
    Moderator

    Hello, do you want to change the create an account from modal to a static page? Just so i know i understood 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48070
     TammyWashington
    Participant

    That is correct.

    #48071
     Laura
    Moderator

    Hello, please share an ftp account and a website link so we can check it out 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48072
     TammyWashington
    Participant

    If you click on the signup button it will take you to our pricing table page. When a user click on Log In then Create A New Account button we would like the link to be directed to our pricing table page. This is the link to our production website: singlestwist.com

    I can give you access to our development website.

    Wordpress Admin
    Username: thefarmer
    Password: Some16times

    We just need to know which file(s) to change. Can you utilize our development environment. I am unable to provide credentials to our production website.

    #48073
     TammyWashington
    Participant

    I forgot to provide the URL to the development environment.

    http://singlestwist-development.bitnamiapp.com/wordpress/

    #48075
     TammyWashington
    Participant

    I was trying to get you access to our sFTP account on the development server. I was told that we can only utilize sFTP by utilizing our Internal network address. The firewall rules do not allow outside users. Can I share my desktop or do you have another way of checking. It seems as thou the file would be the same. We just do not know which file to change.

    #48101
     Laura
    Moderator

    Hello, is ok i will test in my website and will let you know 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48103
     TammyWashington
    Participant

    Thanks Laura, Also I have another question about another problem that you corrected for someone else in the forum. Should I post the problem there or can I ask you here?

    #48113
     Laura
    Moderator

    Hello, you can ask it here 🙂
    I solved the first problem, first copy the file general-login-modal.php inside of sweetdate/page-parts/ and paste it in your child theme, then find:
    The third div, and replace it with this (replace from <div to </div> then change “http://yourwebsite/register&#8221; for the page to redirect.

    COPY CODE
    
    <div class="twelve columns">
          <h5><i class="icon-user icon-large"></i> <?php _e("SIGN INTO YOUR ACCOUNT", 'kleo_framework');?><?php if(get_option('users_can_register')) { ?> <span class="subheader right small-link"><a href="http://yourwebsite/register"><?php _e("CREATE NEW ACCOUNT", 'kleo_framework');?></a></span><?php } ?></h5>
        </div>
    

    Also in header.php , if you already have it in child theme, change:

    COPY CODE
    
    <a href="#" data-reveal-id="register_panel"
    

    For this:

    COPY CODE
    
    <a href="http://yourwebsite/register" 
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48123
     TammyWashington
    Participant

    I created a folder named page-part in the sweet date child theme. Then I copied the file general-login-modal.php into the folder and made the recommended edits. The page gets redirected but now you have to click on the button twice. Please see my website: http://singlestwist.com Did I do something incorrectly. I have added the coded for my changes below for the two files. Thanks for helping me with this.

    Below is a snippet of code for general-login-modal.php

    <div id=”register_panel” class=”reveal-modal”>
    <div class=”row”>
    <div class=”twelve columns”>
    <h5><i class=”icon-user icon-large”></i> <?php _e(“SIGN INTO YOUR ACCOUNT”, ‘kleo_framework’);?><?php if(get_option(‘users_can_register’)) { ?> <span class=”subheader right small-link”><?php _e(“CREATE NEW ACCOUNT”, ‘kleo_framework’);?></span><?php } ?></h5>
    </div>

    Below is a snippet of code for the header.php

    <?php else: ?>

    <li class=”header-login-button”><i class=”icon-user hide-for-medium-down”></i> <?php _e(“LOG IN”, ‘kleo_framework’); ?>

    <?php if(get_option(‘users_can_register’)) { ?>
    <li class=”header-register-button”><i class=”icon-group hide-for-medium-down”></i> <?php _e(“SIGN UP”, ‘kleo_framework’); ?>
    <?php } ?>

    <?php endif; ?>

    #48192
     Laura
    Moderator

    Hello, please share ftp infor so i can fix it, you have set the sing up button correctly but the modal isnt.
    I will fix it really quick 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48200
     TammyWashington
    Participant

    Hello Laura,

    I am unable to provide ftp access. The engineers only allow ftp access from our internal network. Can you remote into my computer or can you provide code?

    Thank you for assisting me.

    #48211
     Laura
    Moderator

    Hello, we can do this, share with me your files for modal and header as a .txt and i will resend it to you fixed 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48217
     TammyWashington
    Participant

    Hello Laura,

    Desired Redirection link: http://singlestwist.com/shortcodes/pricing-table/

    #48224
     Laura
    Moderator

    Hello, here it is, for header.php

    COPY CODE
    
    <?php
    /**
     * The Header for our theme.
     *
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    ?><!DOCTYPE html>
    
    <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 8]>    <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
    <!--[if gt IE 8]><!-->
    
    <html class="no-js" <?php language_attributes(); ?>>
    <!--<![endif]-->
    
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    <!--[if IE 7]>
    <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/assets/styles/font-awesome-ie7.min.css">
    <script src="<?php echo get_template_directory_uri();?>/assets/scripts/ie6/warning.js"></script>
    <script>window.onload=function(){e("<?php echo get_template_directory_uri();?>/assets/scripts/ie6/")}</script>
    <![endif]-->
    
    <!--Favicons-->
    <?php if (sq_option('favicon')) { ?>
    <link rel="shortcut icon" href="<?php echo sq_option('favicon'); ?>">
    <?php } ?>
    <?php if (sq_option('apple57')) { ?>
    <link rel="apple-touch-icon" href="<?php echo sq_option('apple57'); ?>">
    <?php } ?>   
    <?php if (sq_option('apple57')) { ?>
    <link rel="apple-touch-icon" sizes="57x57" href="<?php echo sq_option('apple57'); ?>">
    <?php } ?>   
    <?php if (sq_option('apple72')) { ?>
    <link rel="apple-touch-icon" sizes="72x72" href="<?php echo sq_option('apple72'); ?>">
    <?php } ?>   
    <?php if (sq_option('apple114')) { ?>
    <link rel="apple-touch-icon" sizes="114x114" href="<?php echo sq_option('apple114'); ?>">
    <?php } ?>   
    <?php if (sq_option('apple144')) { ?>
    <link rel="apple-touch-icon" sizes="144x144" href="<?php echo sq_option('apple144'); ?>">
    <?php } ?>  
    
    <?php if(function_exists('bp_is_active')) { bp_head(); } ?>
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
        
    <?php do_action('kleo_after_body');?>
    
    <!-- Page
    ================================================ -->
    <!--Attributes-->
    <!--class = kleo-page wide-style / boxed-style-->
    <div class="kleo-page <?php echo sq_option('site_style','wide-style'); ?>">
    
    <!-- HEADER SECTION
    ================================================ -->
    <header>
    	<div class="header-bg clearfix">
    
    		<?php if(sq_option('social_top') == 1) :?>
    		<!--Top links-->
    		<div class="top-links">
    			<div class="row">
    				<ul class="no-bullet">
    					<li class="nine columns">
    						<?php do_action('kleo_before_top_links');?>
    
    						<?php if(sq_option('owner_email')): ?>
    						<a>"><i class="icon-envelope"></i>   <?php echo sq_option('owner_email'); ?></a>
    						<?php endif; ?>
    					</li>
    
    					<li class="three columns hide-for-small">
    						<?php _e("Find us on", 'kleo_framework'); ?>:  
    						<?php if (sq_option('twitter')): ?>
    						<a>" class="has-tip tip-bottom" data-width="210" target="_blank" title="<?php _e("Follow us on", 'kleo_framework');?> Twitter"><i class="icon-twitter icon-large"></i></a>
    						<?php endif;?>
    						<?php if (sq_option('facebook')): ?>
    						<a>" class="has-tip tip-bottom" data-width="210" target="_blank" title="<?php _e("Find us on", 'kleo_framework');?> Facebook"><i class="icon-facebook icon-large"></i></a>
    						<?php endif;?>
    						<?php if (sq_option('googleplus')): ?>
    						<a>" class="has-tip tip-bottom" data-width="210" target="_blank" title="<?php _e("Find us on", 'kleo_framework');?> Google+"><i class="icon-google-plus icon-large"></i></a>
    						<?php endif; ?>
    						<?php if (sq_option('pinterest')): ?>
    						<a>" class="has-tip tip-bottom" data-width="210" target="_blank" title="<?php _e("Pin us on", 'kleo_framework');?> Pinterest"><i class="icon-pinterest icon-large"></i></a>
    						<?php endif; ?>
    						<?php if (sq_option('linkedin')): ?>
    						<a>" class="has-tip tip-bottom" data-width="210" target="_blank" title="<?php _e("Find us on", 'kleo_framework');?> LinkedIn"><i class="icon-linkedin icon-large"></i></a>
    						<?php endif; ?>
    
    						<?php do_action('kleo_extra_social_icons'); ?>
    					</li>
    				</ul>
    			</div>
    		</div>
    		<!--end top-links-->
    		<?php endif; ?>
    
    		<div id="header">
    			<div class="row">
    
    				<!-- Logo -->
    				<div class="four columns">
    					<h1 id="logo"><?php bloginfo('name'); ?>
    						<a>"><img />" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    					</h1>
    				</div>
    				<!--end logo-->
    
    				<!-- Login/Register/Forgot username/password Modal forms
    					-  Hidden by default to be opened through modal
    					-  For faster loading we put all forms at the bottom of page -->
    
    				<!--Login buttons-->  
    				<div class="eight columns login-buttons">
    					<ul class="button-group radius right">
    						<?php if (is_user_logged_in()): ?>
    							
    							<?php if (function_exists('bp_is_active')): ?>
    							<?php 
    							$profile_menu = array();
    							if( bp_is_active('activity')) {
    								$profile_menu['activity'] = '<li><a href="' . bp_loggedin_user_domain().'activity/">'. __("Activity", "buddypress").'</a></li>';
    							}
    							
    							if( bp_is_active('messages')) {
    								$profile_menu['messages'] = '<li><a href="' . bp_loggedin_user_domain().'messages/">'. __("Messages", "buddypress").' <small class="label">'. messages_get_unread_count().'</small></a></li>';
    							}							
    							
    							if (bp_is_active('friends')) {
    								$profile_menu['friends'] = '<li><a href="' . bp_loggedin_user_domain().'friends/requests">'. __("Friend requests", 'kleo_framework').' <small class="label">'. bp_friend_get_total_requests_count().'</small></a></li>';
    							}						
    							
    							if( bp_is_active('groups')) {
    								$profile_menu['groups'] = '<li><a href="' . bp_loggedin_user_domain().'groups/">'. __("Groups", "buddypress").'</a></li>';
    							}
    							
    							if( bp_is_active('settings')) {
    								$profile_menu['settings'] = '<li><a href="' . bp_loggedin_user_domain().'settings/">'. __("Settings", "buddypress").'</a></li>';
    							}							
    							
    							$profile_menu = apply_filters('header_profile_dropdown',$profile_menu);
    							?>
    							
    							<li class="relative btn-profile">
    								<?php if (!empty($profile_menu)) { ?>
    									<div href="#" class="tiny secondary button split dropdown" data-options="is_hover:true">
    								<?php } ?>
    								<a>" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("PROFILE", 'kleo_framework'); ?></a><span></span><div class="kleo-notifications"><?php if( bp_is_active('messages') && messages_get_unread_count() > 0 ) { ?><a>" data-width="210" title="<?php _e("New messages", 'kleo_framework');?>" class="kleo-message-count has-tip tip-left"><?php echo messages_get_unread_count(); ?></a><?php } ?><?php if (bp_is_active('friends') && bp_friend_get_total_requests_count() > 0): ?> <a>" data-width="210" title="<?php _e("Friend requests", 'kleo_framework');?>" class="kleo-friends-req has-tip tip-right"><?php echo bp_friend_get_total_requests_count(); ?></a><?php endif; ?> </div>
    								<ul>
    								<?php 
    								if (!empty($profile_menu)) {
    									foreach($profile_menu as $prm):
    										echo $prm;
    									endforeach;
    								} 
    								?>
    								</ul>
    								<?php if (!empty($profile_menu)) { ?>
    									</div>        
    								<?php } ?>
    								
    							</li>
    							<?php endif; ?>
    							
    							<li><a> " class="tiny button radius btn-logout"><i class="icon-off hide-for-medium-down"></i> <?php _e("LOG OUT", 'kleo_framework'); ?></a></li>
    
                            <?php else: ?>
    
    							<li class="header-login-button"><a href="#"><i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li>
    
                                <?php if(get_option('users_can_register')) { ?>
    							<li class="header-register-button"><a href="http://singlestwist.com/shortcodes/pricing-table/"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a></li>
    							<?php } ?>
    
    						<?php endif; ?>
    					</ul>
    				</div>
    				<!--end login buttons-->
    
    
    
    				<!-- Main Navigation -->
    				<div class="eight columns">
    					<div class="contain-to-grid<?php if (sq_option('sticky_menu', 1) == 1) echo ' sticky'; ?>">
    						<nav class="top-bar">
    							<a>" class="small-logo"><img />" height="43" alt="<?php bloginfo('name'); ?>"></a>
    							<ul>
    								<!-- Toggle Button Mobile -->
    								<li class="name">
    									<h1><a href="#"><?php _e("Please select your page", 'kleo_framework'); ?></a></h1>
    								</li>
    								<li class="toggle-topbar"><a href="#"><i class="icon-reorder"></i></a></li>
    								<!-- End Toggle Button Mobile -->
    							</ul>
    
    							<section><!-- Nav Section -->
    								<?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'left', 'theme_location' => 'primary', 'fallback_cb' => 'sweetdate_main_nav', 'walker' => new sweetdate_walker_nav_menu) ); ?>
    							</section><!-- End Nav Section -->
    
    						</nav>
    					</div><!--end contain-to-grid sticky-->
    				</div>
    				<!-- end Main Navigation -->
    			</div><!--end row-->
    			
    			<?php if (sq_option('home_rev',0) == 1 && function_exists('putRevSlider')) { /*Fix for Safari on MacOs */ ?>
    			
    			</div><!--end #header-->
    			
    			<?php } ?>
    			
    			<div class="row just-after-header">
    			<?php
    			/**
    			 * after_header_content
    			 * 
    			 * @hooked render_user_search - only if is Front-page Template
    			 */
    			do_action('after_header_content');
    			?>
    			</div>
    			
    			<?php if (sq_option('home_rev',0) == 0) { /*Fix for Safari on MacOs */ ?>
    			
    			</div><!--end #header-->
    			
    			<?php } ?>
    		
    		<?php
    		/**
    		 * kleo_after_header
    		 * 
    		 */
    		do_action('kleo_after_header');
    		?>
    		
    
    	</div><!--end header-bg-->
    </header>
    <!--END HEADER SECTION-->
    
    <?php
    /**
     * kleo_before_page
     * 
     * @hooked kleo_show_breadcrumb - 9
     */
    do_action( 'kleo_before_page' ); 
    ?>
    

    And this for the modal

    COPY CODE
    
    <div id="login_panel" class="reveal-modal">
      <div class="row">
        <div class="twelve columns">
          <h5><i class="icon-user icon-large"></i> <?php _e("SIGN INTO YOUR ACCOUNT", 'kleo_framework');?><?php if(get_option('users_can_register')) { ?> <span class="subheader right small-link"><a href="http://singlestwist.com/shortcodes/pricing-table/"><?php _e("CREATE NEW ACCOUNT", 'kleo_framework');?></a></span><?php } ?></h5>
        </div>
          <form action="<?php echo wp_login_url(apply_filters('kleo_modal_login_redirect', '')  ); ?>" id="login_form" name="login_form" method="post" class="clearfix">
          <div class="six columns">
            <input type="text" id="username" required name="log" class="inputbox" value="" placeholder="<?php _e("Username", 'kleo_framework');?>">
          </div>
          <div class="six columns">
            <input type="password" id="password" value="" required name="pwd" class="inputbox" placeholder="<?php _e("Password", 'kleo_framework');?>">
          </div>
          <p class="twelve columns">
              <label>
                  <input type="checkbox" value="forever" name="rememberme" id="rememberme"> <?php _e( "Remember me", "kleo_framework" ); ?>
              </label>
            <small>
                <i class="icon-lock"></i>
                <?php
                if( sq_option('privacy_page', '#') != "#") {
                    $privacy_page_id = sq_option('privacy_page');
                    /* WPML compatibility */
                    if ( function_exists( 'icl_object_id' ) ) {
                        $privacy_page_id = icl_object_id( $privacy_page_id, 'page', true );
                    }
                    $privacy_link = get_permalink( $privacy_page_id );
                    printf( __( 'Your <a href="%s" target="_blank">privacy</a> is important to us and we will never rent or sell your information.', 'kleo_framework' ), $privacy_link );
                }
                ?>
            </small>
          </p>
          <div class="twelve columns">
            <button type="submit" id="login" name="wp-submit" class="radius secondary button"><i class="icon-unlock"></i>  <?php _e("LOG IN", 'kleo_framework');?></button>   
            <?php do_action('fb_popup_button'); ?>
          </div>
        </form>
        <div class="twelve columns"><hr>
          <ul class="inline-list">
            <li><small><a href="#"><?php _e("FORGOT YOUR USERNAME OR PASSWORD?", 'kleo_framework');?></a></small></li>
          </ul>
        </div>
      </div><!--end row-->
      <a href="#">×</a>
    </div>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48228
     TammyWashington
    Participant

    Hello Laura,

    I copied the code for the header.php and general-login-modal.php to the server.

    In the sweet date-child folder I added header.php then I created a subfolder called page-parts under the sweet date-child folder and added the general-login-model.php file.

    I get an error. See the website: singlestwist.com

    #48474
     Laura
    Moderator

    Hello, i dont see any error, can you share a screenshot please? 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48872
     TammyWashington
    Participant

    Hello Laura,

    We are sorry for the late response. When we saw the error we removed the code and came up with a different alternative. We just added a link else where on the homepage for user to signup. Thanks for you assistance.

    Tammy

    #48916
     Laura
    Moderator

    Im glad you could solve it 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 20 posts - 1 through 20 (of 20 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?