Support » Fixing WordPress » Stop Title from Displaying

  • [ Moderator note: moved to Fixing WordPress. Please do not use Developing With WordPress for these topics. ]

    Hi,

    I’m new to web development, I’ve been learning HTML, CSS and JS for only 3 months and so my skills are not yet advanced enough to be building websites, certainly nothing worthy of boasting about.

    Then the other day, I was pointed in the direction of WP. I simply believed WP was a tool for experienced web developers (which it obviously is) but I didn’t realise just about anyone can make themselves a website, with or without experience. Which is brilliant because now, whilst learning to code, I can fund myself by making professional looking (simple) websites for small businesses before I ‘graduate’.

    Anyway, I’ll get to the point, I’m obviously a novice in both web design and HTML and so my knowledge is basic and I’m having quite a few issues trying to make WP look good, genuine and authentic.
    Especially when authors use php to design their theme – a footer for example in the layla theme has no editable code in the theme footer – it calls on php from somewhere else – if I delete it them the whole footer, parallax and background image disappear, if I don’t delete it then it displays credits to the authors – which kind of detracts from the fact that I would like to claim credit for my design.

    Oops, I still haven’t got to the point as that isn’t the main issue I’m trying to solve here. When I started I didn’t realise what the point of having a home page was all about. I was modifying a theme and so I didn’t have use for any other content and so I deleted the default. Anyway, when I started with the layla theme, it didn’t look at all similar with the demo, so I searched and watched some vids for modifying themes and one guy was taking me through the settings and in the wordpress>settings>reading he said to make sure static page was selected but I didn’t even have that option. So another video or two later, I’ve discovered that the reason was I didn’t have any published pages to set as my front page and so I’ve created one with absolutely no content and assigned it and sure enough, the layla theme was up and running exactly how it was intended.

    Which is good in a way, except, I don’t understand the logic behind it, as I have an empty page which does nothing. Even worse is the fact that if I give it a title (which surely for SEO purposes is vital) then it completely ruins the design. I’ve obviously searched for a solution to remove the title and I’ve found one or two but they don’t seem to apply in this case – finding the h1 with inspect in Chrome, doesn’t show me in which of the 40 different template files this is located and there doesn’t seem to be a great deal of HTML in there either, so I’m struggling to find it.

    I’d better not mention there doesn’t seem to be a way to remove buttons from the design as I’ve said enough for now.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • @bantam75,

    Please provide the blog/website URL and I will provide you some CSS to hide the page title.

    Cheers,

    Liam

    Thanks Liam.

    The site is graftco.co.uk. You’ll notice it’s incomplete as I only started yesterday and I got caught up trying to sort out the issues I mentioned.

    1. Can’t get rid of the front page title.

    2. I can’t remove the buttons – I only wanted one page initially but as I couldn’t remove the buttons, I created a page for the sake of the buttons, which I don’t mind keeping now but still there’s a button in the header that doesn’t link to anything (so I put ‘scroll down’ as the text) which I wouldn’t mind getting rid of.

    3. I can’t remove the signature of the people who created the theme from the footer.

    Your help would be greatly appreciated.

    Andy

    The particulars of how to edit a specific theme can vary greatly, since a lot is left up to the team developer. So for detailed support you will need to contact the theme developer’s support resources.

    From a generic WordPress point of view, a good starting place would be to review the Template Hierachy to see which templates are loaded under which conditions. This will help you find what files you need to edit exactly.

    @bantam75,

    Add the following to your CSS to remove the buttons and page title.

    .layla-button.primary,
    .entry-header .entry-title,
    #layla-featured-post #slide1 h2
    {display:none !important;}
    

    The signature seems to be located in the footer.php file. You will have to edit it in there.

    That’s brilliant, thanks Liam it works a charm – I’m just looking through the source code though to see how you’ve figured it out, some are obvious like button but others like .entry-head (which I can’t even locate with the find tool and #layla-featured-post (which I took and and put back again but didn’t see any difference) – so, I’m asking as a novice, how do you know exactly what to look for?

    The following is the code for the footer:

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the #content div and all content after.
     *
     * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
     *
     * @package Layla
     */
    ?>
    
    </div><!-- #content -->
    
    <footer id="colophon" class="site-footer" role="contentinfo">
        
       <?php do_action( 'layla_footer' ); ?>
        
    </footer><!-- #colophon -->
    </div><!-- #page -->
    <?php wp_footer(); ?>
    </body>
    </html>

    @bantam75,

    I use Google Chrome Developer Tools – Specifically Inspect element.
    See: https://developer.chrome.com/devtools

    The code that executes the portion of the footer with the signature is:
    <?php do_action( 'layla_footer' ); ?>

    Try looking through your theme settings for a footer area or look for a template called layla_footer or a similar name.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Stop Title from Displaying’ is closed to new replies.