Strong Coffee
Forum Replies Created
-
AuthorPosts
-
Thanks. It looks like X-Theme has removed the x-container-fluid class styles so I had to add them as custom css to the theme for GeoDirectories to display correctly. According to X-Theme x-container-fluid is now deprecated so is the x-container-fluid class being added by GeoDirectory?
Here is their release notes from the theme update:
We’ve also simplified some of our class names for various elements as well, so if you have styles applied to some of these, you will want to make sure and update them in your child themes. For example, .x-container-fluid is now .x-container throughout the theme. Additionally, we’ve done away with the .x-responsive-video and .x-responsive-video-shortcode classes, and simply given the outer video container a class of .x-video, and the inner container class an updated name of .x-video-inner. Because of this, now our video and audio shortcodes follow a similar output in class name and make it really easy to target what you’re wanting to style.
Still get the shortcode displaying as text on the page. Here’s what I added to my functions.php file:
add_filter(‘widget_text’, ‘do_shortcode’);
// Apply filter
add_filter(‘body_class’, ‘gd_body_classes’);function gd_body_classes($classes) {
if (geodir_is_geodir_page()) { $classes[] = ‘this_is_a_gd_page’;
return $classes;}
}// Add Shortcode
function gd_curr_loc_shortcode() {// get the location
$current_location = geodir_get_current_location();
// return the location
return $current_location ;}
add_shortcode( ‘gd_curr_location’, ‘gd_currlocation_shortcode’ );This reply has been marked as private.Added the code to my child theme’s function.php file then added the shortcode to my sidebar widget and it just displays “[gd_curr_location]” in the sidebar.
Is there a way to just show the city using the shortcode?
This reply has been marked as private.This reply has been marked as private.Thanks. You guys have been a big help.
Thanks, I’ll look into it. Out of curiousity – does your team do paid customization? Just trying to weigh all my options for this next project we have.
So if we needed to completely change the layout that would be possible?
Thanks!
This reply has been marked as private.Thanks. I was able to make my change. Is there a way to do this as a child theme so I don’t have to repeat the change everytime there is a plugin update?
That was really dumb of me. Assumed it needed to be in pixels because of the default value. Thanks.
This reply has been marked as private. -
AuthorPosts