• Resolved cymru78

    (@cymru78)


    As the title says really.
    How can I remove the page title using the default template option in the pages section?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author simplethemes

    (@simplethemes)

    If it’s just a one-off instance, you can add a custom field named “hidetitle” with value of “true”. If you want this to be site-wide, then you might consider copying the below file to your child-theme/loop-page.php and remove line#29

    https://themes.trac.wordpress.org/browser/smpl-skeleton/2.1.0/loop-page.php#L29

    Thread Starter cymru78

    (@cymru78)

    Brilliant. Thank you.

    Along the same line, is there any issue with using a class to hide the text of the header instead of removing it altogether? Something like HTML5 Boilerplate does with .visuallyhidden?

    * Hide only visually, but have it available for screen readers: h5bp.com/v
     */
    
    .visuallyhidden {
    	border: 0;
    	clip: rect(0 0 0 0);
    	height: 1px;
    	margin: -1px;
    	overflow: hidden;
    	padding: 0;
    	position: absolute;
    	width: 1px;
    }
    /*
     * Extends the .visuallyhidden class to allow the element to be focusable
     * when navigated to via the keyboard: h5bp.com/p
     */
    
    .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
    	clip: auto;
    	height: auto;
    	margin: 0;
    	overflow: visible;
    	position: static;
    	width: auto;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove page title?’ is closed to new replies.