Git Product home page Git Product logo

wordpress-hide-title's Introduction

Hide WordPress Post Title

This simple plugin came from a blog post I wrote on how to hide WordPress post titles. I needed a way to hide the title on posts, but only on a few. And it needed to be something quick and easy. Oddly, Google didn't bring anything up that worked the way I was looking.

Installation

Drop the hide-title.php in a folder under your wp-content/plugins folder, or even directly in the plugins folder. Then activate it just like any other WP plugin.

Usage

The plugin looks for a custom field named hide_title when displaying a post. So when you want to hide the title, add that custom field. The value doesn't matter. The field just needs to be there.

When a post has the hide_title custom field and is in a single view a small bit of CSS will be added to the <head> section using the wp_head action to hide the post title. The plugin does assume that your post title has a CSS class of page-title. Fortunately, most themes use this class name. If your theme uses something different you'll need to change the class name in the php script.

wordpress-hide-title's People

Contributors

ryannutt avatar

Watchers

 avatar

wordpress-hide-title's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.