How do I Remove this Section from my Wordpress Site?

5 replies
This is a post on my wordpress site:
test | Delightful Knowledge

How do I remove the Double Black Lines with a Left Arrow in between them at the bottom of my page?

I have drawn a red circle around it in this image:


This is the code of my single.php file:

Code:
<?php 

/**

 * The Template for displaying all single posts.

 *

 */



get_header(); 

 = bucket::has_average_score(); 

?>



<div class="container container--main" <?php echo  ? 'itemscope itemtype="http://data-vocabulary.org/Review"' : ''; ?>>



    <div class="grid">



        <?php

        // let's get to know this post a little better

         = get_post_meta(wpgrade::lang_post_id(get_the_ID()), '_bucket_full_width_featured_image', true);

         = get_post_meta(wpgrade::lang_post_id(get_the_ID()), '_bucket_disable_sidebar', true);



        // let's use what we know

         =  == 'on' ? 'one-whole' : 'lap-and-up-two-thirds';

         =  == 'on' ||  == 'on' ? 'one-whole' : 'lap-and-up-two-thirds';



        if ( wpgrade::option('title_position', 'below') == 'above' ) {

            echo '<div class="article_title--before grid__item  float--left '..'">';

                get_template_part('theme-partials/post-templates/single-title');

            echo '</div>';

        }



        get_template_part('theme-partials/post-templates/header-single', get_post_format()); ?>



        <article class="post-article  js-post-gallery  grid__item  main  float--left  <?php echo ; ?>">

            <?php while (have_posts()): the_post();



                if ( wpgrade::option('title_position', 'below') == 'below' ) {

                    get_template_part('theme-partials/post-templates/single-title');

                }



                if (  && get_field('placement') == ('before') ) { ?>

                    <div class="score-box score-box--inside">

                        <div class="score__average-wrapper">

                            <div class="score__average <?php echo get_field('note') ? 'average--with-desc' : '' ?>">

                                <?php

                                echo '<div class="score__note" itemprop="rating" >'.bucket::get_average_score().'</div>';

                                if (get_field('note')) {

                                    echo '<div class="score__desc">'.get_field('note').'</div>';

                                } ?>

                                <meta itemprop="worst" content = "1">

                                <meta itemprop="best" content = "10">

                            </div>

                        </div>

                    </div>

                <?php } ?>



                <?php

                the_content();



                 = array(

                    'before' => "<ol class="nav pagination"><!--",

                    'after' => "n--></ol>",

                    'next_or_number' => 'next_and_number',

                    'previouspagelink' => __('Previous', 'bucket_txtd'),

                    'nextpagelink' => __('Next', 'bucket_txtd')

                );

                wp_link_pages(  ); ?>



                <div class="grid"><!--

                    <?php if (  && get_field('placement') == ('after') ) :

                    if(!get_field('enable_pros_cons_lists')) : ?>

                    --><div class="grid__item center-score">

                    <?php else: ?>

                    --><div class="grid__item lap-and-up-two-eighths">

                    <?php endif; ?>   

                    <div class="score-box score-box--after">

                        <div class="score__average-wrapper">

                            <div class="score__average  <?php echo get_field('note') ? 'average--with-desc' : '' ?>">

                                <?php

                                    echo '<div class="score__note" itemprop="rating">'.bucket::get_average_score().'</div>';

                                    if (get_field('note')) {

                                        echo '<div class="score__desc">'.get_field('note').'</div>';

                                    }

                                ?>

								<meta itemprop="worst" content = "1">

                                <meta itemprop="best" content = "10">

                            </div>

                        </div>

                    </div>

                            

                    </div><!--

                    <?php endif;

                    if (get_field('enable_pros_cons_lists')): ?>

                     --><div class="grid__item lap-and-up-six-eighths">

                            <div class="grid">

                                <?php if (get_field('pros_list')): ?><!--

                                 --><div class="score__pros  grid__item  lap-and-up-one-half">

                                        <div class="score__pros__title">

                                            <h3 class="hN"><?php _e('Good Things', 'bucket_txtd'); ?></h3>

                                        </div>

                                        <ul class="score__pros__list">

                                            <?php while(has_sub_fields('pros_list')): ?>

                                                <li class="score_pro"><?php echo get_sub_field('pros_note'); ?></li>      

                                            <?php endwhile; ?>

                                        </ul>

                                    </div><!--

                                <?php endif;

                                if (get_field('cons_list')): ?>

                                 --><div class="score__cons  grid__item  lap-and-up-one-half">

                                        <div class="score__cons__title">

                                            <h3 class="hN"><?php _e('Bad Things', 'bucket_txtd'); ?></h3>

                                        </div>

                                        <ul class="score__cons__list">

                                            <?php while(has_sub_fields('cons_list')): ?>

                                                <li class="score__con"><?php echo get_sub_field('cons_note'); ?></li>      

                                            <?php endwhile; ?>

                                        </ul>

                                    </div>

                                <?php endif; ?>

                            </div>

                        </div><!--

                    <?php endif; ?>

                --></div>



                <?php

                if (get_field('enable_review_score')):

                    //don't show the breakdown if there is only one - it means the guy just wanted the average score

                    if (get_field('score_breakdown') && count(get_field('score_breakdown')) > 1 ): ?>

                        <h3><?php _e('The Breakdown', 'bucket_txtd'); ?></h3>

                        <hr class="separator  separator--subsection">

                        <?php while (has_sub_fields('score_breakdown')): ?>

                            <div class="review__score">

                                <div class="score__label"><?php echo get_sub_field('label'); ?></div>

                                <span class="score__badge  badge"><?php echo get_sub_field('score'); ?></span>

                                <div class="score__progressbar  progressbar">

                                    <div class="progressbar__progress" style="width: <?php echo get_sub_field('score')*10; ?>%;"></div>

                                </div>

                            </div>

                        <?php endwhile; ?>

                        <hr class="separator  separator--subsection">

                    <?php endif;

                endif; ?>



                <div class="article__meta  article--single__meta">

                    <?php

                    if (get_field('credits')):

                        while (has_sub_field('credits')): ?>

                            <div class="btn-list">

                                <div class="btn  btn--small  btn--secondary"><?php echo get_sub_field('name'); ?></div>

                                <a href="<?php echo get_sub_field('full_url'); ?>" class="btn  btn--small  btn--primary"><?php echo get_sub_field('label'); ?></a>

                            </div>

                        <?php endwhile;

                    endif; ?>

                    

                    <?php 

                     = get_the_category();

                    if (): ?>

                    <div class="btn-list">

                    </div>

                    <?php endif;



                     = get_the_tags();

                    if (): ?>

                    <div class="btn-list">

                        <div class="btn  btn--small  btn--secondary"><?php _e('Tagged', 'bucket_txtd') ?></div>

                        <?php

                            foreach ( as ):

                                echo '<a class="btn  btn--small  btn--tertiary" href="'. get_tag_link() .'" title="'. esc_attr(sprintf(__("View all posts tagged %s", 'bucket_txtd'), )) .'">'. .'</a>';

                            endforeach;

                        ?>

                    </div>

                    <?php endif; ?>

                </div>

                <?php if (wpgrade::option('blog_single_show_share_links') && (wpgrade::option('blog_single_share_links_position', 'bottom') == 'bottom' || wpgrade::option('blog_single_share_links_position', 'bottom') == 'both') ) {

					get_template_part('theme-partials/post-templates/share-box');

				} ?>

                <?php if (wpgrade::option('blog_single_show_author_box')) get_template_part( 'author-bio' ); ?>

                

                <?php

                 = get_next_post();

                 = get_previous_post();

                if (!empty() || !empty()): ?>

                

                <nav class="post-nav  grid"><!--

                    <?php if (!empty() && !empty()): ?>

                    --><div class="post-nav-link  post-nav-link--prev  grid__item  one-whole  lap-and-up-one-half">



                    </div><!-- 

                    <?php elseif (empty() && !empty()): ?>

                    --><div class="post-nav-link  post-nav-link--prev  grid__item  one-whole  lap-and-up-one-half">



                    </div><!--                   

                    --><div class="post-nav-link  post-nav-link--blank  grid__item  one-whole  lap-and-up-one-half">

                        &nbsp;

                    </div><!--                     

                    <?php endif;

                    

                    if(!empty() && !empty()) : ?>

                 --><div class="divider--pointer"></div><!--

                    <?php endif; 



                    if (!empty() && !empty()): ?>

                 --><div class="post-nav-link  post-nav-link--next  grid__item  one-whole  lap-and-up-one-half">



                    </div><!--

                    <?php elseif (!empty() && empty()): ?>

                    --><div class="post-nav-link  post-nav-link--blank  grid__item  one-whole  lap-and-up-one-half">

                        &nbsp;

                    </div><!--                     

                 --><div class="post-nav-link  post-nav-link--next  grid__item  one-whole  lap-and-up-one-half">



                    </div><!--                    

                    <?php endif; ?>

                --></nav>



                <?php endif; ?>

                

                <hr class="separator  separator--section">

                

                <?php 

                if ( function_exists('related_posts') ) {

                    related_posts();

                }



                // If comments are open or we have at least one comment, load up the comment template

                if ( comments_open() || '0' != get_comments_number() )

                    comments_template();



            endwhile; ?>

        </article><!--

        

        <?php if ( != 'on'): ?>

         --><div class="grid__item  one-third  palm-one-whole  sidebar">

                <?php get_sidebar(); ?>

            </div>

        <?php else: // ugly ?>

         -->

        <?php endif; ?>



    </div>

</div>

    

<?php get_footer(); ?>
#remove #section #site #wordpress
  • Profile picture of the author GaryCarlyle
    It seems to be coming from some kind of review or featured image plugin so either disable that or remove this:
    <hr class="separator separator--section">

    Let me know what happens after you try that. There should be a closing HR tag you need to remove but I cant see it. So try just removing that for now and report back here please saying what happens.

    Or just remove the plugin causing it if you can.

    The best way to solve this kind of situation is to highlight the code with your mouse and right-click, then select view source. That will help you work out what is generating it. Most web design seems to be solved like that.
    Signature

    UK TV abroad for free: http://WatchBritishTV.com

    {{ DiscussionBoard.errors[9612221].message }}
  • Profile picture of the author MindReality
    Thanks. I removed <hr class="separator separator--section"> and it removed the bottom black line.

    The first black line and the black left pointing arrow is still on the page.

    How do I remove them as well?
    Signature
    Discover The Greatest Secrets Of The Mind And Reality That Will Get You Anything You Desire, Almost Like Magic! Visit: http://www.MindReality.com
    {{ DiscussionBoard.errors[9612672].message }}
    • Profile picture of the author GaryCarlyle
      Originally Posted by MindReality View Post

      Thanks. I removed <hr class="separator separator--section"> and it removed the bottom black line.

      The first black line and the black left pointing arrow is still on the page.

      How do I remove them as well?
      Try removing this whole section and see what happens. Back-up the file first of course.

      Code:
        <div class="article__meta  article--single__meta">
                                                      <div class="btn-list">
                                      <div class="btn  btn--small  btn--secondary"></div>
                                      <a href="" class="btn  btn--small  btn--primary"></a>
                                  </div>
                                                  
                                              <div class="btn-list">
                          </div>
                                          </div>
                                                      
                                      
                      <nav class="post-nav  grid"><!--
                                              --><div class="post-nav-link  post-nav-link--prev  grid__item  one-whole  lap-and-up-one-half">
      
                          </div><!--                   
                          --><div class="post-nav-link  post-nav-link--blank  grid__item  one-whole  lap-and-up-one-half">
                              &nbsp;
                          </div><!--                     
                                          --></nav>
      
                                      
                              </article><!--
      Signature

      UK TV abroad for free: http://WatchBritishTV.com

      {{ DiscussionBoard.errors[9613343].message }}
      • Profile picture of the author emptee
        Overall I wouldn't recommend messing with PHP to do this - update your theme and you're in trouble!

        Often the easiest way to get rid of something relatively minor (eg. stuff that won't affect SEO, doesn't use too much data, doesn't do anything too expensive resource wise.. etc..) Is to simply HIDE IT using CSS.

        My method for this is to use the developer tools in Chrome, hover over the div (or whatever), find something unique about it that can be used as a CSS selector, then edit my child theme's css file, or use a css plugin.. or.. whatever

        Let me know if you need to know more!
        {{ DiscussionBoard.errors[9613562].message }}
        • Profile picture of the author MindReality
          I removed this code and the left pointing black arrow is now gone:

          Code:
                          <nav class="post-nav  grid"><!-- 
                              <?php if (!empty() && !empty()): ?> 
                              --><div class="post-nav-link  post-nav-link--prev  grid__item  one-whole  lap-and-up-one-half"> 
           
                              </div><!--  
                              <?php elseif (empty() && !empty()): ?> 
                              --><div class="post-nav-link  post-nav-link--prev  grid__item  one-whole  lap-and-up-one-half"> 
           
                              </div><!--                    
                              --><div class="post-nav-link  post-nav-link--blank  grid__item  one-whole  lap-and-up-one-half"> 
                                  &nbsp; 
                              </div><!--                      
                              <?php endif; 
                               
                              if(!empty() && !empty()) : ?> 
                           --><div class="divider--pointer"></div><!-- 
                              <?php endif;  
           
                              if (!empty() && !empty()): ?> 
                           --><div class="post-nav-link  post-nav-link--next  grid__item  one-whole  lap-and-up-one-half"> 
           
                              </div><!-- 
                              <?php elseif (!empty() && empty()): ?> 
                              --><div class="post-nav-link  post-nav-link--blank  grid__item  one-whole  lap-and-up-one-half"> 
                                  &nbsp; 
                              </div><!--                      
                           --><div class="post-nav-link  post-nav-link--next  grid__item  one-whole  lap-and-up-one-half"> 
           
                              </div><!--                     
                              <?php endif; ?> 
                          --></nav>
          Now all that is left is the black line.
          Signature
          Discover The Greatest Secrets Of The Mind And Reality That Will Get You Anything You Desire, Almost Like Magic! Visit: http://www.MindReality.com
          {{ DiscussionBoard.errors[9613710].message }}

Trending Topics