Giri
Forum Replies Created
-
AuthorPosts
-
You are welcome 🙂
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]
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>
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.
You are welcome
Yes
April 13, 2016 at 11:56 am in reply to: Adding Popular Post View shortcode to bottom of Details page #162475Please refer this reply. That should fix your issue
https://wpgeodirectory.com/support/topic/gd-detail-bottom-section/#post-162471
@Trex888
Please use this coderemove_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>"; } }
April 12, 2016 at 2:18 pm in reply to: Changing Location Switcher/Country, Region or City Hover Colour #162000I 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 { }
You are welcome 🙂
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; }
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.
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'] ); }
Hi,
Are you trying to use buddypress name field?
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
-
AuthorPosts