Hi Kelly
I proceeded to remove the codes you sent me and it was OK! Thanks! But the following guidelines were missing:
1- remove / hide - PURCHASE IT
2- remove / hide the value of the tour at HOME (see image)
3- can I remove the items from mene without problems? (see image)
https://prnt.sc/pr92a5 purchase it
https://prnt.sc/pr93p5 numbers
Thanks again for your attention !!
Fernando
Hi!
How i do this?
Em sex, 1 de nov de 2019 05:40, C-Themes Help Desk <
c-themes+Z8RXOad49OZrwDQ7bypr@mail.support-hub.io> escreveu:
Hi,
Please remove following code in /wp-content/themes/citytours/single-tour.php file.
<?php if ( 'empty' != $tour_setting ) : ?> <div class="box_style_1 expose"> <h3 class="inner">- <?php echo esc_html__( 'Booking', 'citytours' ) ?> -</h3> <?php if ( 'external' == $tour_setting ) : ?> <a href="<?php echo esc_url( $external_link ) ?>" class="btn_full"><?php echo esc_html__( 'Check now', 'citytours' ) ?></a> <?php elseif ( 'default' == $tour_setting ) : ?> <?php if ( ct_get_tour_cart_page() ) : ?> <form method="get" id="booking-form" action="<?php echo esc_url( ct_get_tour_cart_page() ); ?>"> <input type="hidden" name="tour_id" value="<?php echo esc_attr( $post_id ) ?>"> <?php $lang_code = ct_get_lang_code_for_page( $ct_options['tour_cart_page'] ); if ( ! empty( $ct_options['tour_cart_page'] ) && ! empty( $lang_code ) ) { ?> <input type="hidden" name="lang" value="<?php echo esc_attr( $lang_code ); ?>"> <?php } ?> <?php if ( ! empty( $is_repeated ) ) : ?> <div class="row"> <div class="col-md-6 col-sm-6"> <div class="form-group"> <label><i class="icon-calendar-7"></i> <?php echo esc_html__( 'Select a date', 'citytours' ) ?></label> <input class="date-pick form-control" data-date-format="<?php echo ct_get_date_format('html'); ?>" type="text" name="date" autocomplete="off" readonly> </div> </div> <?php if ( ! empty( $tour_time ) && is_array( $tour_time ) ) : ?> <div class="col-md-6 col-sm-6"> <div class="form-group"> <label><i class="icon-clock"></i> <?php echo esc_html__( 'Time', 'citytours' ) ?></label> <select class="form-control" name="time"> <?php foreach ( $tour_time as $t ) : ?> <option value="<?php echo esc_attr( $t ); ?>"><?php echo esc_html( $t ); ?></option> <?php endforeach; ?> </select> </div> </div> <?php endif; ?> </div> <?php endif; ?> <div class="row"> <div class="col-md-6 col-sm-6"> <div class="form-group"> <label><?php echo esc_html__( 'Adults', 'citytours' ) ?></label> <div class="numbers-row" data-min="1"> <input type="text" value="1" id="adults" class="qty2 form-control" name="adults"> <div class="inc button_inc">+</div> <div class="dec button_inc">-</div> </div> </div> </div> <div class="col-md-6 col-sm-6"> <div class="form-group"> <label><?php echo esc_html__( 'Children', 'citytours' ) ?></label> <div class="numbers-row" data-min="0"> <input type="text" value="0" id="children" class="qty2 form-control" name="kids" <?php if ( ! empty( $price_type ) && $price_type != 'per_group' && empty( $charge_child ) ) echo 'disabled' ?> > <div class="inc button_inc">+</div> <div class="dec button_inc">-</div> </div> </div> </div> </div> <br> <table class="table table_summary"> <tbody> <tr> <td> <?php echo esc_html__( 'Adults', 'citytours' ) ?> </td> <td class="text-right adults-number"> 1 </td> </tr> <tr> <td> <?php echo esc_html__( 'Children', 'citytours' ) ?> </td> <td class="text-right children-number"> 0 </td> </tr> <?php if ( empty( $price_type ) || $price_type == 'per_person' ) : ?> <tr> <td> <?php echo esc_html__( 'Total amount', 'citytours' ) ?> </td> <td class="text-right"> <span class="adults-number">1</span>x <span class="day-price"><?php echo ct_price( $person_price ) ?></span> <?php if ( ! empty( $child_price ) ) : ?> <span class="child-amount hide"> + <span class="children-number">0</span>x <?php echo ct_price( $child_price ) ?></span> <?php endif; ?> </td> </tr> <?php endif; ?> <tr class="total"> <td> <?php echo esc_html__( 'Total cost', 'citytours' ) ?> </td> <td class="text-right total-cost"> <?php echo ct_price( $person_price ) ?> </td> </tr> </tbody> </table> <button type="submit" class="btn_full book-now"><?php echo esc_html__( 'Book now', 'citytours' ) ?></button> </form> <?php else : ?> <?php echo wp_kses_post( sprintf( __( 'Please set tour booking page on <a href="%s">Theme Options</a>/Tour Main Settings', 'citytours' ), esc_url( admin_url( 'admin.php?page=theme_options' ) ) ) ); ?> <?php endif; ?> <?php elseif ( 'inquiry' == $tour_setting ) : echo do_shortcode( $inquiry_form ); endif; ?> <hr> <?php if ( ! empty( $ct_options['wishlist'] ) ) : if ( is_user_logged_in() ) { $user_id = get_current_user_id(); $wishlist = get_user_meta( $user_id, 'wishlist', true ); if ( empty( $wishlist ) ) $wishlist = array(); ?> <a class="btn_full_outline btn-add-wishlist" href="#" data-label-add="<?php esc_html_e( 'Add to wishlist', 'citytours' ); ?>" data-label-remove="<?php esc_html_e( 'Remove from wishlist', 'citytours' ); ?>" data-post-id="<?php echo esc_attr( $post_id ) ?>"<?php echo ( in_array( ct_tour_org_id( $post_id ), $wishlist) ) ? ' style="display:none;"' : '' ?>><i class=" icon-heart"></i> <?php echo esc_html__( 'Add to wishlist', 'citytours' ) ?></a> <a class="btn_full_outline btn-remove-wishlist" href="#" data-label-add="<?php esc_html_e( 'Add to wishlist', 'citytours' ); ?>" data-label-remove="<?php esc_html_e( 'Remove from wishlist', 'citytours' ); ?>" data-post-id="<?php echo esc_attr( $post_id ) ?>"<?php echo ( ! in_array( ct_tour_org_id( $post_id ), $wishlist) ) ? ' style="display:none;"' : '' ?>><i class=" icon-heart"></i> <?php esc_html_e( 'Remove from wishlist', 'citytours' ); ?></a> <?php } else { ?> <div><?php esc_html_e( 'To save your wishlist please login.', 'citytours' ); ?></div> <?php if ( empty( $ct_options['login_page'] ) ) { ?> <a href="#" class="btn_full_outline"><?php esc_html_e( 'login', 'citytours' ); ?></a> <?php } else { ?> <a href="<?php echo esc_url( ct_get_permalink_clang( $ct_options['login_page'] ) ); ?>" class="btn_full_outline"><?php esc_html_e( 'login', 'citytours' ); ?></a> <?php } ?> <?php } endif; ?> </div><!--/box_style_1 --> <?php endif; ?>
And remove following code.
<?php
global $ct_options;
if ( ! empty( $ct_options['tour_review'] ) ) :
$review_fields = ! empty( $ct_options['tour_review_fields'] ) ? explode( ",", $ct_options['tour_review_fields'] ) : array( "Position", "Comfort", "Price", "Quality" );
$review = get_post_meta( ct_tour_org_id( $post_id ), '_review', true );
$review = round( ( ! empty( $review ) ) ? (float) $review : 0, 1 );
$review_detail = get_post_meta( ct_tour_org_id( $post_id ), '_review_detail', true );
if ( ! empty( $review_detail ) ) {
$review_detail = is_array( $review_detail ) ? $review_detail : unserialize( $review_detail );
} else {
$review_detail = array_fill( 0, count( $review_fields ), 0 );
}
?>
<div class="row">
<div class="col-md-3">
<h3><?php echo esc_html__( 'Reviews', 'citytours') ?></h3>
<a href="#" class="btn_1 add_bottom_15" data-toggle="modal" data-target="#myReview"><?php echo esc_html__( 'Leave a review', 'citytours') ?></a>
</div>
<div class="col-md-9">
<div id="general_rating"><?php echo sprintf( esc_html__( '%d Reviews', 'citytours' ), ct_get_review_count( $post_id ) ) ?>
<div class="rating"><?php echo ct_rating_smiles( $review ) ?></div>
</div>
<div class="row" id="rating_summary">
<div class="col-md-6">
<ul>
<?php for ( $i = 0; $i < ( count( $review_fields ) / 2 ); $i++ ) { ?>
<li><?php echo esc_html__( $review_fields[ $i ], 'citytours' ); ?>
<div class="rating"><?php echo ct_rating_smiles( $review_detail[ $i ] ) ?></div>
</li>
<?php } ?>
</ul>
</div>
<div class="col-md-6">
<ul>
<?php for ( $i = $i; $i < count( $review_fields ); $i++ ) { ?>
<li><?php echo esc_html__( $review_fields[ $i ], 'citytours' ); ?>
<div class="rating"><?php echo ct_rating_smiles( $review_detail[ $i ] ) ?></div>
</li>
<?php } ?>
</ul>
</div>
</div><!-- End row -->
<hr>
<div class="guest-reviews">
<?php
$per_page = 10;
$review_html = ct_get_review_html($post_id, 0, $per_page);
echo ( $review_html['html'] );
if ( $review_html['count'] >= $per_page ) {
?>
<a href="#" class="btn more-review" data-post_id="<?php echo esc_attr( $post_id ) ?>"><?php echo esc_html__( 'Load More Reviews', 'citytours' ) ?></a>
<?php
}
?>
</div>
</div>
</div>
<?php
endif;
?>
And remove following code in /wp-content/themes/citytours/header.php file.
<ul id="top_links">
<?php
if ( ( isset($ct_options['header_top_bar_enable_custom']) && ! empty($ct_options['header_top_bar_enable_custom']) ) || ! isset($ct_options['header_top_bar_enable_custom']) ) {
if( isset( $ct_options['header_top_bar_custom'] ) ) {
?>
<li>
<?php echo ( $ct_options['header_top_bar_custom'] ); ?>
</li>
<?php
}
}
?>
<?php
if ( ( isset($ct_options['header_top_bar_wishlist']) && ! empty($ct_options['header_top_bar_wishlist']) ) || ! isset($ct_options['header_top_bar_wishlist']) ) :
$wishlist_link = ct_wishlist_page_url();
$class = ( $wishlist_link == '#' ) ? 'ct-modal-login' : '';
if ( ! empty( $wishlist_link ) ) :
?>
<li>
<a href="<?php echo esc_url( $wishlist_link ); ?>" id="wishlist_link" class="<?php echo esc_attr( $class ) ?>"><?php esc_html_e( 'Wishlist', 'citytours' ) ?></a>
</li>
<?php
endif;
endif;
?>
<?php
if ( ( isset($ct_options['header_top_bar_login']) && ! empty($ct_options['header_top_bar_login']) ) || ! isset($ct_options['header_top_bar_login']) ) :
if ( is_user_logged_in() ) {
?>
<li><a href="<?php echo esc_url( wp_logout_url( ct_get_current_page_url() ) ); ?>"><?php esc_html_e( 'Log out', 'citytours' ) ?></a></li>
<?php
} else {
?>
<li>
<?php if ( ct_login_url() == '#' ) { ?>
<div class="dropdown dropdown-access">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" id="access_link"><?php esc_html_e( 'Log in', 'citytours' ) ?></a>
<div class="dropdown-menu">
<div class="text-center">
<img src="<?php echo esc_url( ct_logo_sticky_url() ) ?>" width="<?php echo esc_attr( ct_get_header_logo_width() ) ?>" height="<?php echo esc_attr( ct_get_header_logo_height() ) ?>" alt="City tours" data-retina="true" class="logo_sticky">
<div class="login-or"><hr class="hr-or"></div>
</div>
<form name="loginform" action="<?php echo esc_url( wp_login_url() )?>" method="post" class="loginform">
<div class="form-group">
<input type="text" name="log" class="form-control" placeholder="<?php esc_html_e( 'user name', 'citytours' ); ?>">
</div>
<div class="form-group">
<input type="password" name="pwd" class="form-control" placeholder="<?php esc_html_e( 'password', 'citytours' ); ?>">
</div>
<input type="hidden" name="redirect_to" value="<?php echo esc_url( ct_redirect_url() ) ?>">
<a id="forgot_pw" href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Forgot password?', 'citytours' ); ?></a>
<input type="submit" value="<?php esc_html_e( 'Log in', 'citytours' ) ?>" class="button_drop">
<?php if ( get_option('users_can_register') ) { ?>
<a class="button_drop outline signup-btn" href="#"><?php esc_html_e( 'Sign up', 'citytours' ) ?></a>
<?php } ?>
</form>
<?php
if ( get_option('users_can_register') ) {
?>
<form name="registerform" action="<?php echo esc_url( wp_registration_url() )?>" method="post" class="signupform">
<div class="form-group">
<input type="text" name="user_login" class="form-control" placeholder="<?php esc_html_e( 'user name', 'citytours' ); ?>">
</div>
<div class="form-group">
<input type="email" name="user_email" class="form-control" placeholder="<?php esc_html_e( 'email address', 'citytours' ); ?>">
</div>
<input type="hidden" name="redirect_to" value="<?php echo esc_url( add_query_arg( array('checkemail' => 'confirm'), wp_login_url() ) )?>">
<input type="submit" value="<?php esc_html_e( 'Sign up', 'citytours' ) ?>" class="button_drop">
<a class="button_drop outline login-btn" href="#"><?php esc_html_e( 'Log in', 'citytours' ) ?></a>
</form>
<?php
}
?>
</div>
</div><!-- End Dropdown access -->
<?php } else { ?>
<a href="<?php echo esc_url( ct_login_url() ) ?>"><?php esc_html_e( 'Log in', 'citytours' ) ?></a>
<?php } ?>
</li>
<?php
}
endif;
?>
</ul>
And add following css code in theme options panel.
.rating, #price_single_main { display: none !important; }
Regards,
C-Themes
Hi,
Please send me the url for the attachment, so that I can see the issue.
Regards,
Hello!
I want to use this template for my project, but it is much more complete than I need, so I have to delete or disable various features. When I did that, I couldn't log in to wp-admin to edit the template. How do I disable / delete what I will not use without giving problem on the site?
I have attached 2 images tagged with what I will not use. But as I could not attach here, although light, I sent by e-mail from you.
I will use everything related to Tours.
Thank you for your attention and look forward to answers.
Thanks
Hi,
1. Please remove it in Appearance -> Menus http://prntscr.com/prgogy
2. Please use following css code in theme options panel.
3. You can remove menu items in Appearance -> Menus.
Best Regards,
C-Themes