Giri
Forum Replies Created
-
AuthorPosts
-
By “Type” I was talking about the post types, Like Posts, Pages, gd_place etc.
How about this?
What are the pages you want to exclude that class?
Ex: Add Listing, ….
List the type of pages, I’ll customize the code and give you.
Thanks
.header .site-logo { float: none; margin: 0 auto; }
You are welcome 🙂
Hi there,
Try this snippet in https://wordpress.org/plugins/code-snippets/
function sd_custom_header_body_class($classes) { if (!in_array("sd-homepage", $classes)) { $classes[] = 'sd-homepage'; } return $classes; } add_filter('body_class', 'sd_custom_header_body_class');
If your layout get messed up, please disable that snippet.
Thanks
You are welcome 🙂
Ok I just modified the code.
Please make these changes and you should be fine.
File: /Users/giri/Sites/wordpress/wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php
In line 821 you will see this line.
https://github.com/mistergiri/supreme-directory/blob/master/inc/geodirectory-compatibility.php#L821$entry_author = '<img src="'.get_stylesheet_directory_uri() . "/images/gravatar2.png".'" height="100" width="100">';
Replace that line with these two lines.
if (!defined('SD_DEFAULT_GRAVATAR_IMAGE')) define('SD_DEFAULT_GRAVATAR_IMAGE', get_stylesheet_directory_uri() . "/images/gravatar2.png"); $entry_author = '<img src="'.SD_DEFAULT_GRAVATAR_IMAGE.'" height="100" width="100">';
Now all you have to do is that add this line in your wp-config.php file
define('SD_DEFAULT_GRAVATAR_IMAGE', 'http://your image url here');
Thanks
Hi Joy,
If you are talking about this image,
/wp-content/themes/supreme-directory/images/gravatar2.png
then your only option right now is to overwrite the image.
I can add a filter in the next version to override that image via hooks.
In the mean time please use overwrite option.
Thanks
Your language file has strings like this in line 4151
#: language.php:72 msgid "Add Images : <small>(You can upload more than one images to create image gallery on detail page)</small>" msgstr "Añadir Imágenes: <small>(Puede subir más de imágenes para crear galería de imágenes en la página de detalle)</small>"
But it doesn’t match the string here.
https://github.com/mistergiri/geodirectory/blob/master/language.php#L72
Notice the words “more than”
Please use exact strings and it would work
I hope you are talking about featured image.
If yes check this thread.
https://wpgeodirectory.com/support/topic/change-herofeatured-image-on-supreme-author-page/
Please post you language file. i’ll check whether you are using the correct strings or not.
Thanks
Hi Abel,
Most likely you are not translating the string properly. Make sure to use html tags too.
https://github.com/mistergiri/geodirectory/blob/master/language.php#L72
How about this code?
.geodir_category_list_view li.gridview_onehalf { margin: 0 6px 0 0 !important; width: calc(50% - 12px) !important; } .geodir_category_list_view li.gridview_onethird { margin: 0 6px 0 0 !important; width: calc(33.3% - 12px) !important; } .geodir_category_list_view li.gridview_onefourth { margin: 0 5px 0 0 !important; width: calc(25% - 12px) !important; } .geodir_category_list_view li.gridview_onefifth { margin: 0 5px 0 0 !important; width: calc(20% - 12px) !important; }
Hi Grant,
Maybe its because I have not added the important tag.
Please try with this code.
.geodir_category_list_view li.gridview_onehalf { margin: 0 20px 0 0 !important; width: calc(50% - 12px) !important; } .geodir_category_list_view li.gridview_onethird { margin: 0 15px 0 0 !important; width: calc(33.3% - 12px) !important; } .geodir_category_list_view li.gridview_onefourth { margin: 0 13px 0 0 !important; width: calc(25% - 12px) !important; } .geodir_category_list_view li.gridview_onefifth { margin: 0 12px 0 0 !important; width: calc(20% - 12px) !important; }
-
AuthorPosts