Guest User

Untitled

a guest
Oct 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <?php get_template_part('index','slider'); ?>
  2. <!-- Page Title Section -->
  3. <div class="page-title-section">
  4. <div class="overlay">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-md-6">
  8. <div class="page-title">
  9. <?php
  10. if ( class_exists( 'WooCommerce' ) ) {
  11. if ( is_shop() ) {
  12. echo '<h1>';
  13. woocommerce_page_title();
  14. echo '</h1>';
  15. }
  16. elseif(is_cart() || is_checkout()) {
  17.  
  18. the_title( '<h1>', '</h1>' );
  19. }
  20. else {
  21.  
  22. the_title( '<h1>', '</h1>' );
  23. }
  24. }
  25. else if( is_archive() ){
  26.  
  27. echo category_description( the_post() );
  28.  
  29. }
  30. else if( is_home() ){
  31.  
  32. echo '<h1>';
  33.  
  34. wp_title(' ');
  35.  
  36. echo '</h1>';
  37. }
  38.  
  39.  
  40. else{
  41.  
  42. the_title( '<h1>', '</h1>' );
  43. }
  44. ?>
  45. </div>
  46. </div>
  47. <div class="col-md-6">
  48. <ul class="page-breadcrumb">
  49. <?php if (function_exists('qt_custom_breadcrumbs')) qt_custom_breadcrumbs();?>
  50. </ul>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <!-- /Page Title Section -->
  57. <div class="clearfix"></div>
Add Comment
Please, Sign In to add comment