Giri
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
Hi Matt,
Stiofan is correct. It will stop showing in the frontend. But the data would still remain in the DB. So if you turn on that feature again, data will be visible in the frontend.
Hope that helps
Thanks
Yep, I’m pretty sure thats the url i was trying so far. I’m being redirected to the home page.
Hi Edith, I’m unable to access wp-admin. It keeps redirecting me to home page.
Hi,
By mean “Hook”, paolo meant the snippet.
Please use code snippets plugin to add the following snippet.https://wordpress.org/plugins/code-snippets/
remove_action('sd_homepage_content','sd_homepage_featured_content'); function sd_homepage_featured_content_modified() { if (is_singular() && geodir_is_page('location') && $location = sd_gd_current_location_name() ) { ?> <h1 class="entry-title"><?php echo esc_attr(__($location, 'geodirectory')); ?></h1> <?php } else { ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php } $sub_title = get_post_meta(get_the_ID(), 'subtitle', true); if (geodir_is_page('location') && defined('GEODIRLOCATION_VERSION')) { $loc = geodir_get_current_location_terms(); $location_type = geodir_what_is_current_location(); $country_slug = ''; $region_slug = ''; if ($location_type == 'city') { $slug = $loc['gd_city']; $region_slug = isset($loc['gd_region']) ? $loc['gd_region'] : ''; $country_slug = isset($loc['gd_country']) ? $loc['gd_country'] : ''; } else if ($location_type == 'region') { $slug = $loc['gd_region']; $country_slug = isset($loc['gd_country']) ? $loc['gd_country'] : ''; } elseif($location_type == 'country') { $slug = $loc['gd_country']; $country_slug = isset($loc['gd_country']) ? $loc['gd_country'] : ''; } else { $slug = ''; } $seo = geodir_location_seo_by_slug($slug, $location_type, $country_slug, $region_slug); $tagline = (isset($seo->seo_image_tagline)) ? __($seo->seo_image_tagline, 'geodirlocation') : ''; if ($tagline) { $sub_title = stripslashes($tagline); } } if (isset($sub_title)) { echo '<div class="entry-subtitle">' . $sub_title . '</div>'; } sd_search_form_shortcode(); echo do_shortcode('[gd_cpt_listings cpt_img_width=120 cpt_img_height=90]'); echo '<div class="home-more" id="sd-home-scroll"><a href="#sd-home-scroll" ><i class="fa fa-chevron-down"></i></a></div>'; } add_action('sd_homepage_content','sd_homepage_featured_content_modified');
Thanks
PS: Make sure to activate the snippet.
Hi Edith,
I’m unable to access the backend. Can you make sure that test user is Admin?
Where do I edit the footer details? I have tried from footer.php but i could not find.
What exactly you are trying to do in footer and what theme are you using?
Hi there,
I’m not sure which theme you are using in your website.
But you can try this code. This will add a Visit Store link in your detail page sidebar.
add_action('geodir_before_detail_page_more_info', 'gd_visit_store_button'); function gd_visit_store_button(){ global $post; $author = $post->post_author; $author_info = get_userdata( $author ); if ( $author_info->roles[0] == "vendor" ) { $store_url = WCVendors_Pro_Vendor_Controller::get_vendor_store_url( $author ); echo '<a href="'.$store_url.'">Visit Store</a>'; } }
Let me know if you face any problem.
Thanks
Hi Tania,
Your workaround involves both js and css
Add this JS in Design > Scripts
jQuery( document ).ready(function() { jQuery("#geodir_post_desc_row").removeClass("required_field"); });
Apply this CSS too.
#geodir_post_desc_row label span, #geodir_post_desc_row .geodir_message_error { display:none !important; }
Let me know how that goes.
https://wpgeodirectory.com/docs/common-code-snippets/#descThanks
June 2, 2017 at 12:24 pm in reply to: blog page – feature image for the first post is missing #381278Hi Peter, That layout is coming from genesis theme. I guess its designed that way to show the full blog post on first post without thumbnail.
It has nothing to do with geo theme. Please check for blog layouts settings in genesis theme.
Thanks for letting us know.
Hi Tim,
I’d like the 2nd link to be conditionally visible like the default in the event that the listing doesn’t have an email assigned to it.
You have to wrap paolo code inside an if check like this
global $post; if (!isset($post->geodir_email) || empty($post->geodir_email)) { ?> <a href="javascript:void(1);" class="b_send_inquiry2" onclick="jQuery( '.b_send_inquiry' ).click();">Send Enquiry</a> <?php }
Also, for the enquiry form itself, I’d like to use a different form entirely. Would it be better to create a different form template file or update the existing to accommodate the desired fields/content and by chance is it possible to integrate something like contact form 7 into this?
This is not possible without hiring a developer. You can reference this code if you wanna link send enquiry button to another page.
https://wpgeodirectory.com/support/topic/listing-detail-author-link/#post-361147
Thanks
Hi wonderbc,
Do you use any other caching plugins besides GD booster?
None of my changes reflecting in frontend
Hi wonderbc, Sorry i missed your reply.
Let me check.
Hi pedstone, Thanks for reporting. I’ll fix that one.
-
AuthorPosts