This topic has 18 replies, 6 voices, and was last updated 10 years by Nudrica.

  • Author
  • #3380
     nusolutions
    Participant

    I need to use an old school method for this particular project so I wonder if it’s possible to only have a landing or splash page appear on the home page with no other options, including the footer. It would resemble Zoosk or Match in that only a registration or search form is present upon visiting the site. Once logged in users are redirected to their BuddyPress profiles and when Home is clicked they see a different layout which would be similar to the one in the demo.
    Is it also possible to have rotating images on the home landing or splash page?

    Awesome theme!

    Any thoughts to adding a showcase?

    #3400
     nusolutions
    Participant

    Theme version update so I see that the Revolution slider has been added. Great!

    #3576
     SQadmin
    Keymaster

    Hi,
    I am thinking that you could have two pages and use this plugin to show one or another in the menu: http://wordpress.org/plugins/menu-items-visibility-control/

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

    (though i’m not sure whether this conflicts with the theme or not)

    #14304
     nusolutions
    Participant

    REVISIT:
    I’m back on this project and still no luck in hiding footers on the home page for non-registered users?
    I tried the article and realize that I don’t want heavy coding for this particular need as there should be a way to create a page which doesn’t contain the footers. All this page needs is the slider, register/search form, and space for text if needed.

    #14307
     joninhas
    Participant

    I really need also to know how can i insert logins and registration forms on a landing page

    Apreciate

    #14653
     Abe
    Keymaster

    Hi nusolutions, You need to edit footer.php and add some php conditions in there to check if the user is logged in, example:

    <?php if (is_user_logged_in()) { ?> Content to hide <?php } ?>

    You should really hire a developer to help you with custom changes.

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #14654
     Abe
    Keymaster

    Hi joninhas, For the register form in homepage you have this shortcode: [kleo_register_form]
    Attributes available:
    profiles=”1|0″ – show/hide the recent profiles underneath
    title=”Title…”
    details=”Extra details here …”

    For the login form there is no shortcode for a form but you should check wordpress default login form: https://codex.wordpress.org/Function_Reference/wp_login_form

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #14656
     nusolutions
    Participant

    I don’t need no stinkin’ developer! 🙂

    I managed to figure it out by using the for guests shortcode, widget logic plugin, and another plugin called menu item visibility control to hide certain menu links. In addition I decided to keep the footer widgets. See here: http://singleryders.com

    My one remaining challenge is this:
    A user logs in and they’re re-directed to their profile. Instead of seeing Home they now see Welcome instead. The Welcome page provides the different experience I was seeking. All is well except if they click the logo it takes them back to the home page which at this point contains nothing. In addition the Home link dispays in the breadcrumb. So instead of trying to make the Home page look like the Welcome page I think I’d prefer to hide it completely for logged in users.
    Is this possible or do you still recommend I hire a developer? 😐 :-/ 🙂

    thanks

    #14925
     Abe
    Keymaster

    You can hide the breadcrumb Home with the css if you do not want to go into coding:

    COPY CODE
    
    .trail-begin {display: none;}
    

    Editing header.php you will find the logo and the link which is generated by the php function: get_home_url(). You can change that to match your needs

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #19217
     nusolutions
    Participant

    Revisit. Revisit. I see where the ability to enable/disable Breadcrumbs was added so thanks for that! In regards to the logo image I see and locate this inside of header.php:

    COPY CODE
    
    <!-- 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-->
    
    In my search I come across this: 
    
    <?php
    if ( is_user_logged_in() ) {
    
    } else {
        <a href="http://yoursite.com">Sign Up</a>
    };
    ?>
    
    What I find is that I can simply remove: 
    
    <a>"> 
    

    and the image is simply not clickable! Done!

    What I’d like to know if it’s possible to have the image to link to a different URL depending on whether the user is logged in or not?

    #19218
     nusolutions
    Participant

    Sorry! I forgot to add the code within the brackets.

    #19408
     Abe
    Keymaster

    You should do something like

    COPY CODE
    <?php
    if ( is_user_logged_in() ) {
    ?>
    <a href="http://yoursite.com/forloggedin" rel="nofollow">Sign Up</a>
    <?php
    } else {
    ?>
        <a href="http://yoursite.com" rel="nofollow">Sign Up</a>
    <?php
    };
    ?>
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #19413
     nusolutions
    Participant

    So I’m looking at this code:

    COPY CODE
    <!-- Logo -->
    				<div class="four columns">
    					<h1 id="logo"><?php bloginfo('name'); ?>
    						<img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    					</h1>
    				</div>
    				<!--end logo-->

    I don’t see where to add this as I’m talking about the site logo and having it point to the correct page. So if clicked while logged in it points to the welcome page, which has a different layout, http://mysite.com/welcome. If not logged in when clicked the logo points to the Home page. The way I have it right now the image isn’t linked or clickable.

    thanks

    #19587
     Nudrica
    Participant

    I need the same thing. Making the logo redirect to one part of my site when a user is logged in and another when he/she is not.

    Did you figure out where the code should go nusolutions?

    #19628
     Abe
    Keymaster

    Hi, you need to edit header.php and around line 20 you should see the logo image that should be modified like this and change the links accordingly to your needs:

    COPY CODE
    <?php
    if ( is_user_logged_in() ) {
    ?>
    <a href="<?php echo get_home_url(); ?>"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    <?php
    } else {
    ?>
    <a href="<?php echo get_home_url(); ?>"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    <?php
    };
    ?>
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #19659
     nusolutions
    Participant

    Line 20 for me shows <head> and line 116 shows logo as so:

    COPY CODE
    <!-- Logo -->
    				<div class="four columns">
    					<h1 id="logo"><?php bloginfo('name'); ?>
    						<img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    					</h1>
    				</div>
    				<!--end logo-->

    And end up with the following:

    COPY CODE
    <!-- Logo -->
    				<div class="four columns">
    					<h1 id="logo"><?php
    if ( is_user_logged_in() ) {
    ?>
    <a href="http://singleryders.com/welcome/"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    <?php
    } else {
    ?>
    <a href="<?php echo get_home_url(); ?>"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    <?php
    };
    ?></a>
    					</h1>
    				</div>
    				<!--end logo-->

    BAM!
    BAM!
    BAM! BAM! BAM!

    It works!!!
    Awesome! Awesome Indeed!

    #19670
     Nudrica
    Participant

    Thx abe – it worked like a charm 🙂 maybe as nusolutions – I didnt find it at line 20, but when I knew what to look for then it wasnt that hard.

    Thx.

Viewing 19 posts - 1 through 19 (of 19 total)

The topic ‘A Splash or Landing page Only!’ is closed to new replies.

Log in with your credentials

Forgot your details?