Giri

Forum Replies Created

Viewing 15 posts - 2,251 through 2,265 (of 2,661 total)
  • Author
    Posts
  • in reply to: 'GD > Features' widget shortcode available? #163266

    Giri
    Expired Member
    Post count: 3155

    You are welcome 🙂

    in reply to: 'GD > Features' widget shortcode available? #162640

    Giri
    Expired Member
    Post count: 3155

    If you want that as a shortcode just follow these steps. Put the following code in your child theme’s functions.php file

    
    
    function gd_features_custom_sc() {
    ?>
    <ul class='gd-features'>
            <li>       
                <h3 class='gd-fe-title'>Your title Goes here</h3>
                <div class='gd-fe-image'>img goes here</div>
                <div class='gd-fe-desc'>Description goes here</div>
            </li>
    </ul>
    <?php    
    }
    add_shortcode('gd_features_custom_sc', 'gd_features_custom_sc');

    Then you can use shortcode like

    [gd_features_custom_sc]
    in reply to: 'GD > Features' widget shortcode available? #162636

    Giri
    Expired Member
    Post count: 3155

    We don’t have any shortcode for that. But its very easy. So you can use html if this is very urgent for you

    This is how code syntax look like

    
    
    <ul class='gd-features'>
            <li>       
                <h3 class='gd-fe-title'>Your title Goes here</h3>
                <div class='gd-fe-image'>img goes here</div>
                <div class='gd-fe-desc'>Description goes here</div>
            </li>
    </ul>

    Just duplicate the

    <li>....</li>

    part, if you would like to add more items.

    For image you can use normal image or font awesome icon.

    Normal image

    
    
    <ul class='gd-features'>
            <li>       
                <h3 class='gd-fe-title'>Your title Goes here</h3>
                <div class='gd-fe-image'><img src="image url here" /></div>
                <div class='gd-fe-desc'>Description goes here</div>
            </li>
    </ul>

    Font awesome icon.

    
    
    <ul class='gd-features'>
            <li>       
                <h3 class='gd-fe-title'>Your title Goes here</h3>
                <div class='gd-fe-image'><i style="color:#757575" class="fa fa-facebook"></i></div>
                <div class='gd-fe-desc'>Description goes here</div>
            </li>
    </ul>
    in reply to: Supreme directory & other matters #162510

    Giri
    Expired Member
    Post count: 3155

    For forgot password link, it looks like you are using a link. But in GD we use javascript to display forgot password link.

    For example test here.

    http://wpgeo.directory/supreme-directory/gd-login/

    So the link should be

    
    
    
    <a href="javascript:void(0);showhide_forgetpw();"><?php echo FORGOT_PW_TEXT; ?></a>

    Then we have this code that displays Forgot Password form

    
    
    <div id="lostpassword_form" style="display:none;">
            <h4><?php echo FORGOT_PW_TEXT; ?></h4>
    
            <form name="lostpasswordform" id="lostpasswordform"
                  action="<?php echo htmlspecialchars(geodir_curPageURL()); ?>" method="post">
                <input type="hidden" name="action" value="lostpassword"/>
    
                <div class="form_row clearfix">
                    <input placeholder='<?php echo USERNAME_EMAIL_TEXT; ?>' type="text" name="user_login"
                           value="<?php echo esc_attr($user_login); ?>" size="20" class="user_login1 textfield"/>
                    <?php
                    /**
                     * Called before the get new password button in the login box template.
                     *
                     * @since 1.0.0
                     */
                    do_action('lostpassword_form'); ?>
                </div>
                <input type="submit" name="get_new_password" value="<?php echo GET_NEW_PW_TEXT; ?>" class="geodir_button"/>
            </form>
        </div>

    It does look like you are not using GD Login template for your login page. If you are gonna use custom template for login page, then make sure you have all necessary code there.

    in reply to: GD Detail Bottom Section #162482

    Giri
    Expired Member
    Post count: 3155

    You are welcome

    in reply to: GD Detail Bottom Section #162479

    Giri
    Expired Member
    Post count: 3155

    Yes


    Giri
    Expired Member
    Post count: 3155

    Please refer this reply. That should fix your issue

    https://wpgeodirectory.com/support/topic/gd-detail-bottom-section/#post-162471

    in reply to: GD Detail Bottom Section #162471

    Giri
    Expired Member
    Post count: 3155

    @Trex888
    Please use this code

    
    
    remove_action('geodir_sidebar_detail_bottom_section', 'geodir_action_geodir_sidebar_detail_bottom_section', 10);
    add_action('geodir_wrapper_close', 'whoop_detail_bottom_section', 10, 1);
    add_action('whoop_detail_bottom_section_content', 'geodir_action_geodir_sidebar_detail_bottom_section');
    function whoop_detail_bottom_section($page) {
        if ($page == 'details-page') {
            echo "<div class='whoop-detail-bottom-sidebar' style='clear: both'>";
            do_action('whoop_detail_bottom_section_content');
            echo "</div>";
        }
    }

    Giri
    Expired Member
    Post count: 3155

    I use chrome for debugging.

    Right click on the page and then click “Inspect”

    Then look for this code

    <li id="menu-item-gd-location-switcher" .....

    Right click on that and then select “hover” option.

    Now inside that li you can see “sub-menu”. Thats where that location switcher code can be found.

    As far CSS you have to target the following rules.

    
    
    #menu-item-gd-location-switcher .geodir_location_tab_container dd.geodir_location_tabs a {
    
    } 
    #menu-item-gd-location-switcher .geodir_location_sugestion .geodir-chosen-container {
    
    }
    in reply to: Extra User Field on Register Page #161501

    Giri
    Expired Member
    Post count: 3155

    You are welcome 🙂

    in reply to: Supreme Directory mobile menu #161437

    Giri
    Expired Member
    Post count: 3155

    I have fixed those bugs. Fix will be available in next version. Please add this code in your child theme’s style.css file in the meantime.

    
    
    #primary-nav .sd-my-account-dd-inner ul {
        float: none;
    }
    
    #gd-account-nav.mm-opened h2.widgettitle {
        color: #ffffff;
        margin: 10px 0;
        font-size: 23px;
    }
    #gd-account-nav.mm-opened .geodir-chosen-container {
        padding: 10px 10px 10px 20px;
    }
    #gd-account-nav.mm-opened .geodir-chosen-container-single .chosen-drop {
        margin-top: -11px;
    }
    #gd-account-nav.mm-opened .mm-list i.fa {
        display: none;
    }
    #gd-account-nav.mm-opened .mm-list>li>a,
    #gd-account-nav.mm-opened .mm-list>li>span {
        display: inline-block;
    }
    #gd-account-nav.mm-opened .chosen-drop {
        color: #757575;
    }
    in reply to: Directory Starter Theme Customization #161417

    Giri
    Expired Member
    Post count: 3155

    You were facing that problem because of that admin bar. You have added the code to hide that. But it was still visible. I have removed admin bar from frontend.

    This is the code I added

    add_filter('show_admin_bar', '__return_false');

    I have edited directory-starter theme functions.php file and added the code there.

    But you have to create a child theme and move the code there, if you don’t want to lose any changes while you upgrade.

    Let me know if you still have any problem.

    in reply to: Extra User Field on Register Page #160809

    Giri
    Expired Member
    Post count: 3155

    Please use this code in your child theme’s functions.php file

    
    
    function whoop_add_signup_form_fields() {
        ?>
        <div class="row_spacer_registration clearfix">
            <div class="form_row clearfix">
                <input placeholder='Company Name' type="text" name="company"
                       id="company" class="textfield input-text" value="" size="25"/>
                <span id="company_info"></span>
            </div>
        </div>
        <?php
    }
    add_action('social_connect_form', 'whoop_add_signup_form_fields', 1);
    
    function whoop_check_signup_form_errors($errors) {
        $company = esc_sql(sanitize_text_field($_POST['company']));
        if ($company == '') {
            $errors->add('empty_company', __('ERROR: Please enter your company name.', 'geodirectory'));
        }
        return $errors;
    }
    add_filter('registration_errors', 'whoop_check_signup_form_errors');
    
    function whoop_insert_signup_extra_fields($user_id) {
        $company = esc_sql(sanitize_text_field($_POST['company']));
        update_user_meta($user_id, 'company', $company);
    }
    add_action('geodir_user_register', 'whoop_insert_signup_extra_fields');
    
    add_action( 'show_user_profile', 'whoop_extra_profile_fields' );
    add_action( 'edit_user_profile', 'whoop_extra_profile_fields' );
    
    function whoop_extra_profile_fields( $user ) { ?>
    
    	<h3>Extra profile information</h3>
    
    	<table class="form-table">
    
    		<tr>
    			<th><label for="company">Company</label></th>
    
    			<td>
    				<input type="text" name="company" id="company" value="<?php echo esc_attr( get_the_author_meta( 'company', $user->ID ) ); ?>" class="regular-text" /><br />
    				<span class="description">Please enter your Company name.</span>
    			</td>
    		</tr>
    
    	</table>
    <?php }
    
    add_action( 'personal_options_update', 'whoop_save_extra_profile_fields' );
    add_action( 'edit_user_profile_update', 'whoop_save_extra_profile_fields' );
    
    function whoop_save_extra_profile_fields( $user_id ) {
    
    	if ( !current_user_can( 'edit_user', $user_id ) )
    		return false;
    
    	update_user_meta( $user_id, 'company', $_POST['company'] );
    }
    in reply to: Profile updates changes in widgets #160761

    Giri
    Expired Member
    Post count: 3155

    Hi,

    Are you trying to use buddypress name field?

    in reply to: Bold home right section widget Title #160754

    Giri
    Expired Member
    Post count: 3155

    I have added this code in whoop quick css.

    
    
    #gd-sidebar-wrapper h3.widget-title {
        font-size:21px !important;
    }

    I hope that what you looking for

Viewing 15 posts - 2,251 through 2,265 (of 2,661 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount