No Search Bar
This topic contains 10 replies, has 2 voices, and was last updated by Dan Minimal 7 years, 7 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 4, 2018 at 4:14 am #415844
Hi All,
Super green here. I’ve just installed the GD plugin and both templates as described in the demo. I also installed dummy data. There is no search box on the home page. There’s a red one below the background image that just says “Sorry, no results were found.”http://www.pennsylvania-pymatuning.com/awpress/
Your help is greatly appreciated!
Thank You, Dan
February 4, 2018 at 4:25 am #415845Ahhhh I feel like a jackass. I got it now. Set home page!
I’m sure I’ll run into other issues. Thank you.
February 4, 2018 at 6:03 am #415852Add the GD Search widget to any widget area you like.
See also https://wpgeodirectory.com/docs/layout/#directoryThanks
February 4, 2018 at 8:04 am #415855How can I remove the section that mentions which user added the place listing? On the front end once the place listing is clicked, you see the listing name, reviews, phone etc…, but to the left of it you can see who added the listing. That’s what I want to remove.
Please and Thank You, Danny
February 4, 2018 at 8:09 am #415856Add this CSS:
.sd .sd-detail-author { display: none; }
For future reference, see https://wpgeodirectory.com/docs/customizing-your-style/
Thanks
February 4, 2018 at 8:16 am #415857ehhh. I don’t want to hide it. I want to remove it. I find it on line 708 to line 801 in geodirectory-compatibility.php in the wp-content/themes/supreme-directory/inc directory, but I know there’s one of them function/hook ways of doing it without removing a chunk of code.
Thank You,
DanFebruary 4, 2018 at 8:24 am #415858I just went ahead and removed
<div class="sd-detail-author"> <?php $is_owned = false; if (!$preview && function_exists('geodir_load_translation_geodirclaim')) { $geodir_post_type = get_option('geodir_post_types_claim_listing', array()); if (in_array($post_type, $geodir_post_type)) { $is_owned = !$duplicate_of ? (int)geodir_get_post_meta($post_id, 'claimed', true) : (int)geodir_get_post_meta($duplicate_of, 'claimed', true); if ($is_owned) { ?> <span class="fa fa-stack sd-verified-badge" title="<?php _e('Verified Owner', 'supreme-directory'); ?>"> <i class="fa fa-circle fa-inverse"></i> <i class="fa fa-check-circle"></i> </span> <?php } else { $author_link = '#'; $author_name = __('Claim Me', 'supreme-directory'); $entry_author = '<img src="'.get_stylesheet_directory_uri() . "/images/gravatar2.png".'" height="100" width="100">'; } } } $author_name = apply_filters('sd_detail_author_name', $author_name); $entry_author = apply_filters('sd_detail_entry_author', $entry_author); $author_link = apply_filters('sd_detail_author_link', $author_link); printf('<div class="author-avatar"><a href="%s">%s</a></div>', esc_url($author_link), $entry_author); if (!defined('GEODIRCLAIM_VERSION') || $is_owned == '1') { printf('<div class="author-link"><span class="vcard author author_name"><span class="fn"><a href="%s">%s</a></span></span></div>', esc_url($author_link), esc_attr($author_name)); do_action('sd_detail_author_extra', $post, $author_link, $author_name); } else { do_action('sd_detail_default_author', $post, $author_link, $author_name); } if (is_user_logged_in() && geodir_listing_belong_to_current_user()) { global $preview; if( $preview ){ $editlink = '#'; } ?> <a href="<?php echo esc_url($editlink); ?>" class="supreme-btn supreme-btn-small supreme-edit-btn"><i class="fa fa-edit"></i> <?php echo __('Edit', 'supreme-directory'); ?></a> <?php } if (function_exists('geodir_load_translation_geodirclaim')) { $geodir_post_type = array(); if (get_option('geodir_post_types_claim_listing')) { $geodir_post_type = get_option('geodir_post_types_claim_listing'); } $posttype = (isset($post->post_type)) ? $post->post_type : ''; if (in_array($posttype, $geodir_post_type) && !$preview) { $is_owned = !$duplicate_of ? (int)geodir_get_post_meta($post_id, 'claimed', true) : (int)geodir_get_post_meta($duplicate_of, 'claimed', true); if (get_option('geodir_claim_enable') == 'yes' && !$is_owned ) { if ($duplicate_of) { $current_url = get_permalink($duplicate_of); $current_url = add_query_arg(array('gd_go' => 'claim'), $current_url); if (!is_user_logged_in()) { $current_url = geodir_login_url(array('redirect_to' => urlencode_deep($current_url))); $current_url = apply_filters('geodir_claim_login_to_claim_url', $current_url, $duplicate_of); } echo '<a href="' . esc_url($current_url) . '" class="supreme-btn supreme-btn-small supreme-edit-btn"><i class="fa fa-question-circle"></i> ' . __('Claim', 'supreme-directory') . '</a>'; } else { if (is_user_logged_in()) { echo '<div class="geodir-company_info">'; echo '<div class="geodir_display_claim_popup_forms"></div>'; echo '<a href="javascript:void(0);" class="supreme-btn supreme-btn-small supreme-edit-btn geodir_claim_enable"><i class="fa fa-question-circle"></i> ' . __('Claim', 'supreme-directory') . '</a>'; echo '</div>'; echo '<input type="hidden" name="geodir_claim_popup_post_id" value="' . $post->ID . '" />'; if (!empty($_REQUEST['gd_go']) && $_REQUEST['gd_go'] == 'claim' && !isset($_REQUEST['geodir_claim_request'])) { echo '<script type="text/javascript">jQuery(function(){jQuery(".supreme-btn.geodir_claim_enable").trigger("click");});</script>'; } } else { $current_url = remove_query_arg(array('gd_go'), geodir_curPageURL()); $current_url = add_query_arg(array('gd_go' => 'claim'), $current_url); $login_to_claim_url = geodir_login_url(array('redirect_to' => urlencode_deep($current_url))); $login_to_claim_url = apply_filters('geodir_claim_login_to_claim_url', $login_to_claim_url, $post->ID); echo '<a href="' . esc_url($login_to_claim_url) . '" class="supreme-btn supreme-btn-small supreme-edit-btn"><i class="fa fa-question-circle"></i> ' . __('Claim', 'supreme-directory') . '</a>'; } } } } } ?> </div> <!-- sd-detail-suthor end -->
February 4, 2018 at 9:34 am #415864Thanks for letting us know.
February 4, 2018 at 7:11 pm #415916sure. no problem. I certainly appreciate your jumping in here to help me out I just don’t care much for band-aids. The reason I wanted to remove the author name is because it discloses to the world what the user name is. If it’s just display:none; then only honest people aren’t going to see it. Anyone with nefarious intentions will still find it. I don’t plan to have bunch of people registering as I will be doing all the business listings. I have no problem working inside of php I just don’t do a whole lot with WP.
Thanks again,
DannyFebruary 4, 2018 at 7:33 pm #415921Where can I get the location icons? I did the dummy data with just 10 records so now I have just 5 or so location icons. I figure they were programatically downloaded from somewhere, but I’ve yet to figure out where from. Looking over server logs and file system code now…
Thank You,
DannyFebruary 4, 2018 at 7:57 pm #415926 -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket