• When I click on the navigation bar, i.e. on “About Us” – on the “About Us” page the “About Us” will come up again in big letters and takes up an enormous amount of space. So, I’d like to get rid off the “About Us” repeat on the page. Have studied the php code in the editor, but just don’t get it.

    Which part of the code will I have to amend so my text moves up as well?
    (I’m using the Punchcut Theme, https://www.x-tremehealth.com)

    Thanks lots

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey x-tremehealth,

    It is usually in page.php. The code looks like this:
    <h2><a href="<?php the_permalink();?>"><?php the_title();?></a></h2>
    Try to remove that code, it is under this line: <?php if(have_posts()) : while(have_posts()) : the_post();?>

    Thread Starter x-tremehealth

    (@x-tremehealth)

    Hi Kim, Thanks for that.
    The closest code to your description I found was in index.php:

    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>

    I deleted the line, but the “About Us” on the page didn’t disappear. What am I looking for? Permalink, Title? or what else could it be called?

    I tried to delete this code, looked like it could have something to do with it: array( “name” => __(‘Navigation <span>control your top navigation menu</span>’, ‘punchcut’),
    “type” => “subhead”),

    but it didn’t work either…

    make a backup copy of your theme files before editing

    you probably have to look into page.php (if your theme has this file)
    and see if you can find:

    <div class="post-header">
              <h1 class="pagetitle">About Us</h1>
            </div><!--end post-header-->

    (where there would be some php code instead of ‘About Us’)

    delete the above code, and see if that solves your problem

    Thread Starter x-tremehealth

    (@x-tremehealth)

    I’m truly impressed!!! It obviously worked.
    Thank you very very much!

    Now do you or anyone else knows a way to move up the initial text on the page by about 1cm. I can’t stand wasting all that space. Would I find that in page.php too?

    Thank you again

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Repeat of words from navigation bar’ is closed to new replies.