Giri
Forum Replies Created
-
AuthorPosts
-
Hi murphy,
Can you try deactivating askimet plugin?
Make sure to clear the cache after that.
Let me know how that goes.
Thanks
Hi Murphy,
Can you link me directly to the page where you have that problem. Also provide login details.
Thanks
Hi there,
Fieldset CSS. Using the fieldset as a title for each group, with its own CSS class & icon as with other custom fields.
We do have filters. You can modify the title html to include icon and custom classes. You can use fieldset custom field only for titles.
Adding alt-text to icons. As they’re actully bg images, it’s not possible with CSS. I can do it with title attribute as explained here, but where do I add it?
Alt attribute is applicable only for img tag. I just discussed with stiofan about the bg alt tag. He told me he added title attribute in last version which serves the same purpose.
Tweaking the gd-comma-list class. I added it in the custom CSS field of some multiple selection custom fields to get a comma separated list. However, as my directory is RTL, and as GD is not 100% RTL compatible, I need to tweak it a bit (it’s aligned to the left). But where?
You need to override CSS styles for that. This is the styles you need to override.
https://github.com/mistergiri/geodirectory/blob/master/geodirectory-assets/css/style.scss#L1880
Multiselect icons & search. I want to have a multiple select field, where each selected option will be displayed as an icon (similar to how Categories are displayed). Is it possible? Also – if I want each option to be seachable as well (Using Advanced Search I assume) – what should I do? Can I use multiselect this way or should I just use many checkboxes instead?
Discussed with stiofan. This is what he said
“U would have to let us know what type of thing it is searching for us best to advise.
for the icon thing it could be done but would require custmoisation which we do not do”Hi mrv,
That is not possible directly.
You need to have two copies of cta div.
One as it is right now, another one in the sidebar bottom.
You need to hide the sidebar one on desktops and main one on mobile.
You need to use css to hide them.
Hope that makes sense.
Use this code to add the cta in sidebar.
add_action('geodir_sidebar_detail_bottom_section', 'sd_sidebar_cta'); function sd_sidebar_cta() { global $preview, $post; echo '<div class="sd-detail-cta sd-detail-sidebar-cta">'; $review_button = '<a class="dt-btn" href="' . get_the_permalink() . '#reviews">' . __('Write a Review', 'supreme-directory') . '</a>'; echo apply_filters('sd_details_output_review_button',$review_button); $send_buttons = '<div class="geodir_more_info geodir-company_info geodir_email" style="padding: 0;border: none">'; if (!$preview) { $html = '<input type="hidden" name="geodir_popup_post_id" value="' . $post->ID . '" /> <div class="geodir_display_popup_forms"></div>'; $send_buttons .= $html; } $send_buttons .= '<span style="" class="geodir-i-email">'; $send_buttons .= '<i class="fa fa-envelope"></i>'; if (isset($post->geodir_email) && $post->geodir_email) { $send_buttons .= '<a href="javascript:void(0);" class="b_send_inquiry">'.SEND_INQUIRY.'</a> | '; } $send_buttons .= '<a class="b_sendtofriend" href="javascript:void(0);">'.SEND_TO_FRIEND.'</a></span>'; $send_buttons .= '</div>'; echo apply_filters('sd_details_output_send_buttons',$send_buttons); ob_start(); geodir_favourite_html($post->post_author, $post->ID); $fav_html = ob_get_clean(); echo apply_filters('sd_details_output_fav',$fav_html); ob_start(); ?> <ul class="sd-cta-favsandshare"> <?php if (!$preview) { ?> <li><a rel="nofollow" target="_blank" title="<?php echo __('Share on Facebook', 'supreme-directory'); ?>" href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>"><i class="fa fa-facebook"></i></a></li> <li><a rel="nofollow" target="_blank" title="<?php echo __('Share on Twitter', 'supreme-directory'); ?>" href="http://twitter.com/share?text=<?php echo urlencode(get_the_title()); ?>&url=<?php echo urlencode(get_the_permalink()); ?>"><i class="fa fa-twitter"></i></a></li> <li><a rel="nofollow" target="_blank" title="<?php echo __('Share on Google Plus', 'supreme-directory'); ?>" href="https://plus.google.com/share?url=<?php echo urlencode(get_the_permalink()); ?>"><i class="fa fa-google-plus"></i></a></li> <?php } else { ?> <li><a rel="nofollow" target="_blank" title="<?php echo __('Share on Facebook', 'supreme-directory'); ?>" href=""><i class="fa fa-facebook"></i></a></li> <li><a rel="nofollow" target="_blank" title="<?php echo __('Share on Twitter', 'supreme-directory'); ?>" href=""><i class="fa fa-twitter"></i></a></li> <li><a rel="nofollow" target="_blank" title="<?php echo __('Share on Google Plus', 'supreme-directory'); ?>" href=""><i class="fa fa-google-plus"></i></a></li> <?php } ?> </ul> <?php $share_html = ob_get_clean(); echo apply_filters('sd_details_output_share_links',$share_html); echo '</div><!-- sd-detail-cta end -->'; ?> <?php }
Then use CSS media queries to hide.
Thanks
Hi Jay,
I have modified the snippet.
CPT grids now get displayed below search form.
But for some reason the css changes not reflecting in front end. Make sure you are not using any cache plugin.
Thanks
Hi Apologies,
I didn’t notice the categories in the bottom.
If you have no problem with white spaces, you can try this css.
.gd-cptcat-ul.gd-cptcat-parent.gd-cpt-flat { min-height: 500px !important; overflow: hidden !important; display: inline-block !important; }
or you can move the ‘what to do’ category to the last as you said
Hi Scott,
I see the categories are lined up in the page you linked. Let me know if you need anything else.
Thanks
Hi Richard,
Can you tell me which post type you are talking about?
Also can you directly link to me to the admin side custom fields page?
I see fields with title “Updates” but not “latest updates”
This reply has been marked as private.Hi Andres,
Supreme is a child theme. As you mentioned grandchild themes are bad idea. The only way to customize supreme is either use code snippets or modify the supreme itself.
For the later part, you may lose your changes if you try to update it.
We provide hooks to make most of the changes.
In case you require a custom hook, let us know. We are happy to include that in supreme.
There is a hook named
sd_detail_before_cat_links
available in the section you mentioned.
If you explain what you are trying to achieve, i can help you better.
Thanks
Hi Jay,
To hide those duplicated content, you need to use CSS.
Give me the link to the page where you took that screenshot.
Thanks
You are welcome.
Hi Tania,
Try modifying kor code like this.
Replace this line
add_filter( 'sd_details_output_social', 'gd_custom_sd_details_output_social_neighbourhood', 10, 1 );
with
add_filter( 'sd_details_output_address', 'gd_custom_sd_details_output_social_neighbourhood', 11, 1 );
June 12, 2017 at 2:05 pm in reply to: Minimum thumbnail dimensions on custom post advanced search #382846Hello Damian,
I believe you mean the text should stay in the right and thumbnail should stay in the right regardless of the window size.
Thats a bad idea.
This is what we call responsive design.
If you put the thumb in left and text in right in mobile too, this would create bad user experience.
But If you absolutely need it then it requires more work. You need to learn about css media queries and then override some part of the code using your custom code.
https://www.w3schools.com/css/css3_mediaqueries_ex.asp
Its better you hire someone from freelancer or upwork to do the task.
Hope that helps.
Thanks
-
AuthorPosts