Giri
Forum Replies Created
-
AuthorPosts
-
You are welcome.
Hi Andrea, you can use this hook.
geodir_after_favorite_html
add_action('geodir_after_favorite_html' ,'geodir_after_favorite_html_date'); function geodir_after_favorite_html_date($post_id) { echo get_the_date(); }
August 22, 2017 at 10:55 am in reply to: Pages layout breaks when unchecking 'Search right section' #392279Hi Neil, changed the css to this.
@media (min-width: 981px) { body.single.et_pb_gutter.et_pb_gutters2 #left-area { width: 77.25%; } .search-results #left-area, .archive #left-area {width: 100% !important; padding-right: 0% !important;} } body.search.geodir_advance_search #main-content .container:before, body.archive #main-content .container:before { background-color: transparent !important; } body.search.geodir_advance_search h1.entry-title { width: 80%; max-width: 1080px; margin: auto; } body.search.geodir_advance_search .container { width: 100%; max-width: 100%; } body.search.geodir_advance_search #content-area, body.search.geodir_advance_search #footer-bottom .container { width: 80%; max-width: 1080px; margin: auto; }
Thanks
Hi Jay,
Stiofan told me that those GD settings won’t work with some themes. You need to use your native theme settings.
Thanks
Hi there,
No I don’t have the custom css. Please take screenshot and point me the areas where you need those css. I’ll write custom css and give it you.
Thanks
Are you talking about vertical center?
Yes that DS is created for GD. Supreme changes only the styles.
Thanks
You seem like you are using the DS theme now. Are you gonna stick with that one?
content box background colour is coming from directory starter theme. Supreme overrides directory-starter templates. So supreme doesn’t use the content-box class.
You may have to override the styles by using custom css. Sorry about that.
Let me know where you want that bg color. I’ll give you custom css for that.
Thanks
August 17, 2017 at 2:04 pm in reply to: Pages layout breaks when unchecking 'Search right section' #391673It looks better but the footer is still not full width, it’s as if there is an element that is not floated properly or similar?
Its full width for me.
https://www.dropbox.com/s/fs7n43c5k6qtavv/Screenshot%202017-08-17%2019.33.49.png?dl=0
August 17, 2017 at 11:58 am in reply to: Pages layout breaks when unchecking 'Search right section' #391656Hi Neil,
I added some more css.
body.geodir_advance_search .container { width: 100%; max-width: 100%; } body.geodir_advance_search #content-area, body.geodir_advance_search #footer-bottom .container { width: 80%; max-width: 1080px; margin: auto; }
Hope that helps
August 17, 2017 at 10:59 am in reply to: Pages layout breaks when unchecking 'Search right section' #391647I have added the following code there.
body.geodir_advance_search #main-content .container:before { background-color: transparent !important; } body.geodir_advance_search h1.entry-title { width: 80%; max-width: 1080px; margin: auto; }
You are welcome.
Apply this css.
.sd.home .featured-area .geodir-pcat-show, .sd.sd-location .featured-area .geodir-pcat-show { margin-bottom: 10px; }
For the record.
function modified_sd_homepage_featured_content() { 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_popular_post_category category_limit=6 category_restrict=1]'); 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('geodir_wrapper_open', 'modified_sd_homepage_featured_content_init', 4); function modified_sd_homepage_featured_content_init() { remove_action('sd_homepage_content','sd_homepage_featured_content'); add_action('sd_homepage_content','modified_sd_homepage_featured_content'); }
-
AuthorPosts