Joy
Forum Replies Created
-
AuthorPosts
-
Hi Guust. That’s why I’m asking. GD has a set of locations that are created by the admin, is there a way to load the search bar for a specific location?
Basically, I’m trying to re-create a location page, using the location page informs the search bar of the location to search, but since the template isn’t really working for me, I’m looking for another option. Thank you.
Sorry, I figured it out. If anyone else needs this:
<?php /** * The template for displaying Comments. * * The area of the page that contains both current comments * and the comment form. * * @since 1.0.0 * @since 1.5.4 Modified to fix review sorting. * * @package GeoDirectory */ /* * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ if (post_password_required()) return; ?> <div id="comments" class="comments-area"> <?php /** * Filters comment form args * * If you would like to modify your comment form args, use this filter. @see https://codex.wordpress.org/Function_Reference/comment_form for accepted args. * * @since 1.0.0 */ $args = apply_filters('geodir_review_form_args', array( 'title_reply' => __('Leave a Review', 'geodirectory'), 'label_submit' => __('Post Review', 'geodirectory'), 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . __('Review text', 'geodirectory') . ' <span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" required></textarea></p>', 'must_log_in' => '<p class="must-log-in">' . sprintf(__('You must be <a href="%s">logged in</a> to post a comment.', 'geodirectory'), geodir_login_url()) . '</p>' )); comment_form($args); ?> <?php /** * Called before displaying reviews. * * If you would like to wrap reviews inside a div this is the place to print your open div. @see geodir_before_review_form to print your closing div. * * @since 1.5.7 */ do_action('geodir_before_review_list'); ?> <?php if (have_comments()) : ?> <h2 class="comments-title"> <?php printf(_n('1 Review <span class="r-title-on">on</span> <span class="r-title">“%2$s”</span>', '%1$s Reviews <span>on</span> <span class="r-title"> “%2$s”</span>', get_comments_number(), 'geodirectory'), number_format_i18n(get_comments_number()), get_the_title()); ?> </h2> <?php /** * Called after displaying review listing title. * * @since 1.5.7 */ do_action('geodir_after_review_list_title'); ?> <ol class="commentlist"> <?php $reverse_top_level = is_plugin_active('geodir_review_rating_manager/geodir_review_rating_manager.php') ? false : null; ?> <?php wp_list_comments(array('callback' => 'geodir_comment', 'reverse_top_level' => $reverse_top_level, 'style' => 'ol')); ?> </ol><!-- .commentlist --> <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // are there comments to navigate through ?> <nav id="comment-nav-below" class="navigation" role="navigation"> <h1 class="assistive-text section-heading"><?php _e('Review navigation', 'geodirectory'); ?></h1> <div class="nav-previous"><?php previous_comments_link(__('← Older Reviews', 'geodirectory')); ?></div> <div class="nav-next"><?php next_comments_link(__('Newer Reviews →', 'geodirectory')); ?></div> </nav> <?php endif; // check for comment navigation ?> <?php /* If there are no comments and comments are closed, let's leave a note. * But we only want the note on posts and pages that had comments in the first place. */ if (!comments_open() && get_comments_number()) : ?> <p class="nocomments"><?php _e('Reviews are closed.', 'geodirectory'); ?></p> <?php endif; ?> <?php endif; // have_comments() ?> <?php /** * Called before displaying "Leave a review form". * * If you would like to wrap "review form" inside a div this is the best place to hook your open div. @see geodir_after_review_form to print your closing div. * Also If you would like to wrap "reviews" inside a div this is the best place to print your closing div. @see geodir_before_review_list to print your open div. * * @since 1.5.7 */ do_action('geodir_before_review_form'); ?> <?php /** * Called after displaying "Leave a review form". * * If you would like to wrap "review form" inside a div this is the best place to print your closing div. @see geodir_before_review_form to print your open div. * * @since 1.5.7 */ do_action('geodir_after_review_form'); ?> </div><!-- #comments .comments-area -->
If you’re using UserWP you can set the registration approval settings here:
UsersWP > Register
You can also setup SMTP to avoid your emails from WordPress being sent to spam.
Sorry, nevermind.
Hi again. Is there a way I can just hook the supreme social code into the directory starter? I looked at the link but I don’t see where the images can be swapped out. The code is definitely not at clear as it is here:
<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 urlencode(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(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')); ?>&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>
Ok, I will try to figure this out. Thank you.
Thank you, that works. 🙂
Thank you so much for your help! I really appreciate it.
Thank you. I tried that but it doesn’t seem to work. Please see if it would be easier to just add another link and remove the default link.
I can’t take a screenshot of this because the drop down menu that I’m referring to disappears when I try to.
https://wpgeo.directory/supreme-directory/
I am referring to the drop down on the “My Account” menu. The snippet provided changes the “Forgot password” link to the login page – which isn’t right. Is there a function to just change the “Forgot password” link? And if not, how can I just add another link to that section to create my own “Forgot password” link? Thank you.
Sorry but this actually isn’t what I needed. I don’t need to edit the “My Account” section, I need to add a link into the dropdown “My Account” menu in Supreme theme. Thank you.
Perfect, that’s just what I need. Thank you.
This reply has been marked as private.This reply has been marked as private.Tried this, but it didn’t work. The listing page won’t load if I have this code active. :-\
-
AuthorPosts