Giri
Forum Replies Created
-
AuthorPosts
-
Heather,
Next time you post your login credentials, make sure to post your website url 🙂
I have tried http://freshandgroovy.com/ but it shows bluehost page. So i need your website url
If its a bug i’ll fix that. Don’t worry.
Thanks.
Looks like you are talking about “BUSINESS HOURS” addon. Thats a third party addon. That plugin not included in our membership. You have to contact its author Jeff. http://sfcplugins.com/contact-us/
If you need ALL listing count, try this code
// Add number of listings function listing_count(){ $post_types = geodir_get_posttypes('Array'); $count = 0; if (!empty($post_types)) { foreach ($post_types as $post_type => $cpt_info) { $query_args = array( 'post_type' => $post_type, ); $output = geodir_get_widget_listings($query_args, true); $count = $count + (int) $output; } } return $count; } add_shortcode('listingcount', 'listing_count');
could you give me url to your form and login credentials?
If that doesn’t work make sure you are using the correct post type name.
It might be
gd_service
instead of
gd_services
Hi there, You have almost made it work except that you are supposed to use return in shortcodes instead of echoing it.
Just place this code and let me know how that goes.
// Add number of listings function listing_count(){ $query_args = array( 'post_type' => 'gd_services', ); return geodir_get_widget_listings($query_args, true); } add_shortcode('listingcount', 'listing_count');
May 6, 2016 at 10:10 am in reply to: Location Switcher jumps left & right when short word is selected #185534I have fixed that bug by adding this code in whoop options.
.nav li#menu-item-gd-location-switcher ul.sub-menu {right:0;}
Let me know if you still have that problem.
Thanks
Hi there, you have to use the following code if you need listing count.
$query_args = array( 'post_type' => 'gd_place', ); echo geodir_get_widget_listings($query_args, true);
@nycinsider, Don’t worry. We are here to help you. I’ll create a child theme for you tomorrow and give you. So you don’t have to worry about coding part.
You have to understand something. Directory Starter is a theme hosted in wordpress.org ( https://wordpress.org/themes/directory-starter/ ) So it should work without GD according to wp.org guidelines.
If we add all the GD related features in normal wordpress posts and pages, then non geodirectory users cannot use it.
So the only way to add geodirectory supported features like breadcrumb is by creating a child theme.
I’ll be happy to help you with that tomorrow.
Thanks
@nycinsider I have added some hooks in DS.
Please note we cannot offer breadcrumb in DS itself since its already available in GD.
So you still have to copy and paste some codes in your child theme.
For instance if you want breadcrumb in the posts and pages, you have to use these codes in your child theme.
add_action('dt_single_before_main_content', 'geodir_breadcrumb'); add_action('dt_page_before_main_content', 'geodir_breadcrumb'); add_action('dt_index_before_main_content', 'geodir_breadcrumb');
You also have to download the developement version of DS to make those filters work.
wow, I was really hoping this new theme/plugin would include everything GeoTheme had, but it seems we have to create a lot from scratch
Thats why we call this starter theme. “Directory Starter” created with simplicity in mind. It is a simple theme just like WordPress built-in 20XX themes but it supports GeoDirectory pretty well.
You won’t have much trouble with GD pages. If you have, then you can let us know. DS is relatively new theme and there is plenty of room for improvement.
As far your breadcrumb problem, breadcrumbs available in all GD Pages.
I’ll see what i can do for Posts and Pages
Oh boy I”m back again…How do I wrap the subcategory dorp down menu around the whole category title? http://www.yegmeals.com go to the top right “food court” and then the very last one does’t fit at the bottom.
Try this CSS. It can be added in GeoDirectory > Design > Scripts > CSS
.sd #primary-nav ul li a { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
I have fixed that “Select option” translation and applied patch on your site.
Thanks
Hi there, regular posts and pages use wordpress default templates structure.
I mean
single.php for posts (wp-content/themes/directory-starter/single.php)
page.php for pages (wp-content/themes/directory-starter/page.php)
You have to override those templates if you want a top section and sidebar.
You can just copy and paste those templates in child theme.
When you mean Top section, i believe you are talking about widgets. If thats the case, edit your child theme’s functions.php file and then add these codes.
function directory_theme_top_widgets_init() { // Sidebars register_sidebar(array( 'name' => __('Sidebar Top', 'directory-starter'), 'id' => 'sidebar-top', 'description' => __( 'Top Sidebar.', 'directory-starter' ), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widgettitle">', 'after_title' => '</h4>', )); } add_action('widgets_init', 'directory_theme_top_widgets_init');
Finally edit copied single.php and page.php file and then add these codes
<div class="container"> <div class="content-box"> <?php dynamic_sidebar('sidebar-primary'); ?> </div> </div>
Add the above code after this line
https://github.com/mistergiri/directory-starter/blob/master/single.php#L1
and this line
https://github.com/mistergiri/directory-starter/blob/master/page.php#L1
As far side bar you have to call
<?php get_sidebar(); ?>
in those templates.
Let us know how that goes
I believe you want to remove rel=”nofollow” from website, twitter and facebook links.
If thats the case use this code in your child theme.
function gd_remove_rel_nofollow_from_url($html) { $html = str_replace('rel="nofollow"', '', $html); return $html; } add_filter('geodir_show_geodir_website', 'gd_remove_rel_nofollow_from_url'); add_filter('geodir_show_geodir_twitter', 'gd_remove_rel_nofollow_from_url'); add_filter('geodir_show_geodir_facebook', 'gd_remove_rel_nofollow_from_url');
-
AuthorPosts