Featured area popular categorise edit.
This topic contains 14 replies, has 4 voices, and was last updated by Denuwan Vithanage 7 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: Featured area.
-
AuthorPosts
-
August 14, 2017 at 1:15 pm #391074
In default theme. In featured area there are only 5 place categorise. I need to change that into all my categories. Can anyone tell me what is the piece of cord I need to change this .
August 14, 2017 at 2:04 pm #391094Hi there,
Currently, it displays the 5 most popular categories and changing that would require customization. You can find the code here as explained in this section of the documentation https://wpgeodirectory.com/docs/faqs/how-do-i-remove-the-popular-categories-section-from-the-home-page/ .
August 14, 2017 at 3:46 pm #391131Thank you very much for your quick response. The thing is I need to expand that list. I want to show more than 5 categories.
echo do_shortcode('[gd_popular_post_category category_limit=5]');
I tried changing as “category_limit=6”
But It didn’t work. Is there any other code that I need to construct manually. If so please direct me to the place where it appear.
Best regards
DenuwanAugust 14, 2017 at 6:32 pm #391167Please provide a link and admin credentials so that we can check what you did and correct it in case there are errors.
Thanks
August 14, 2017 at 6:38 pm #391170Thank you.How can I provide admin credentials privately.? I dont think it is good to post that in the forum.
August 14, 2017 at 6:43 pm #391172tick the “Set as private reply” option below the “Notify me of follow-up replies via email”.
Only moderators will be able to read them.
Thanks
August 15, 2017 at 1:45 am #391210This reply has been marked as private.August 15, 2017 at 5:28 am #391238though I change or edit
echo do_shortcode('[gd_popular_post_category category_limit=5]');
nothings happens to the appearance.
August 16, 2017 at 1:24 pm #391449This reply has been marked as private.August 16, 2017 at 1:25 pm #391450For 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'); }
August 16, 2017 at 2:51 pm #391465Thank you very much on your effort. It works very well. I need another small help. since I dont havean knowledge on CSS can you help me to increase the space between two rows. as shown in the below image.
August 16, 2017 at 3:54 pm #391483Apply this css.
.sd.home .featured-area .geodir-pcat-show, .sd.sd-location .featured-area .geodir-pcat-show { margin-bottom: 10px; }
August 16, 2017 at 4:01 pm #391485Thank you very much Giri, You are a life saver..:) It worked greatly. appreciate your service.
August 16, 2017 at 4:51 pm #391496You are welcome.
August 17, 2017 at 3:16 pm #391688Hello Giri,
If you have time please check on this. Though I change the color of the content box it is not changing in the site.
https://wpgeodirectory.com/support/topic/content-box-background-colour-cannot-change/
if you want to login you can use previous credentials.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket