Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › How to edit homepage when users log in.
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › How to edit homepage when users log in.
- This topic has 3 replies, 2 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
October 17, 2014 at 5:18 pm #121176
Hello.
My site does not utilize shipping and I would like to modify this page when users log in. How can I do this?
Thanks!
Jay
Attachments:
You must be logged in to view attached files.October 20, 2014 at 7:22 am #121314Hi,
What do you want to add/remove at this page?
Thanks
MohammadOctober 24, 2014 at 3:01 am #122839Thanks for the reply.
What if i wanted to remove the shipping information. Or add a link at the top for affiliates.
How would i be able to do that?
Thanks,
Jay
October 24, 2014 at 7:00 am #122849Hi,
Please paste given below code at functions.php of child theme and edit your links as you want.<?php function sf_woo_help_bar() { $options = get_option('sf_neighborhood_options'); $help_bar_text = __($options['help_bar_text'], 'swiftframework'); $email_modal = __($options['email_modal'], 'swiftframework'); $shipping_modal = __($options['shipping_modal'], 'swiftframework'); $returns_modal = __($options['returns_modal'], 'swiftframework'); $faqs_modal = __($options['faqs_modal'], 'swiftframework'); ?> <div class="help-bar clearfix"> <span><?php echo do_shortcode($help_bar_text); ?></span> <ul> <li><a href="#email-form" class="inline" data-toggle="modal"><?php _e("Email customer care", "swiftframework"); ?></a></li> <li><a href="#shipping-information" class="inline" data-toggle="modal"><?php _e("Shipping information", "swiftframework"); ?></a></li> <li><a href="#returns-exchange" class="inline" data-toggle="modal"><?php _e("Returns & exchange", "swiftframework"); ?></a></li> <li><a href="#faqs" class="inline" data-toggle="modal"><?php _e("F.A.Q.'s", "swiftframework"); ?></a></li> </ul> </div> <div id="email-form" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="email-form-modal" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="email-form-modal"><?php _e("Email customer care", "swiftframework"); ?></h3> </div> <div class="modal-body"> <?php echo do_shortcode($email_modal); ?> </div> </div> <div id="shipping-information" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="shipping-modal" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="shipping-modal"><?php _e("Shipping information", "swiftframework"); ?></h3> </div> <div class="modal-body"> <?php echo do_shortcode($shipping_modal); ?> </div> </div> <div id="returns-exchange" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="returns-modal" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="returns-modal"><?php _e("Returns & exchange", "swiftframework"); ?></h3> </div> <div class="modal-body"> <?php echo do_shortcode($returns_modal); ?> </div> </div> <div id="faqs" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="faqs-modal" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="faqs-modal"><?php _e("F.A.Q.'s", "swiftframework"); ?></h3> </div> <div class="modal-body"> <?php echo do_shortcode($faqs_modal); ?> </div> </div> <?php } ?>
Thanks
Mohammad -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.