tag doesnt work on frontpage

  • Unknown's avatar

    hello, <hr> tag works on a separate html page outside of WordPress but it doesnt work when i paste it to frontpage.php . why and how can i solve this problem?

    <hr>
    
    <style> hr
        { border:0; height:20px; background:url("https://image.freepik.com/free-photo/cute-cat-picture_1122-449.jpg") 0 0;
        }   </style>
  • Unknown's avatar

    frontpage :

    <?php get_header(); ?>
    <section class="container">
     <div class="row">
         <div class="col-lg-8 bg-danger">
             <div class="row">
             <div class="col-lg-12 bg-info">
                 <?php $args= array(
            'posts_per_page' => 3
          ); ?>
          <?php $entries =  new WP_Query($args); while($entries->have_posts()): $entries->the_post(); ?>
    
                 <div class="col-lg-6 entry" >
    
                  <div class="entry-content">
          <?php the_post_thumbnail('entry',  array('class' => 'img-responsive') ); ?>
                      <h3><?php the_title(); ?></h3>
                      <p>
                        Published on: <span> <?php the_time(get_option('date_format') ); ?></span>
                      </p>
                      <p>
                        By: <span><?php the_author(); ?></span>
                      </p>
                      <a href="<?php the_permalink(); ?>" class="btn btn-success">Read more</a>
                  </div>
              </div>
    
          <?php endwhile; wp_reset_postdata(); ?></div>
         </div>
     </div>
    
     <div class="col-lg-4 bg-danger">
          <?php get_sidebar(); ?>
     </div>
     </div>
    
     <div class="row">
         <div class="col-lg-12 bg-success"> <?php $args= array(
            'posts_per_page' => 3
          ); ?>
          <?php $entries =  new WP_Query($args); while($entries->have_posts()): $entries->the_post(); ?>
    
                 <div class="col-lg-4 entry" >
    
                  <div class="entry-content">
          <?php the_post_thumbnail('entry',  array('class' => 'img-responsive') ); ?>
                      <h3><?php the_title(); ?></h3>
                      <p>
                        Published on: <span> <?php the_time(get_option('date_format') ); ?></span>
                      </p>
                      <p>
                        By: <span><?php the_author(); ?></span>
                      </p>
                      <a href="<?php the_permalink(); ?>" class="btn btn-success">Read more</a>
                  </div>
              </div>
    
          <?php endwhile; wp_reset_postdata(); ?></div>
    
     </div>
    </section>
  • Unknown's avatar

    Hi @muratbey987, it looks like you are using WordPress but you are not hosted here at WordPress.com. These forum are for those hosted here at WordPress.com. For self-hosted WordPress sites such as yours, I would suggest asking for help in the volunteer-based WordPress.org forums.

    The differences between WordPress.com and WordPress.org.

  • The topic ‘tag doesnt work on frontpage’ is closed to new replies.