Support » Plugins » sub-head generator

  • Resolved volfro

    (@volfro)


    Hi all,

    I’ve done some searching but can’t find exactly what I’m looking for.

    Is there a plugin that can generate a sub-head for each post/page, enclosed in an <h4>?

    The theme I’m building is generating the proper code, and I could probably make it so that the sub-head is part of the post, but that would involve direct HTML editing within posts, and my client isn’t exactly computer-savvy, let alone XHTML-savvy.

    So I’m looking for something that, from within the WP admin interface, my client can add a subhead below the Post (or page) Title field.

    The HTML looks something like this:

    <ul id="content">
    	<li class="mainHead">
    	<h3>Working</h3>
    	</li>
    	<li class="subHead">
    		<h4>Please pardon our progress! This site is under construction.</h4>
    	</li>
    	<li class="entry">
    		<p class="date">February, 2007</p>
    <p>content goes here</p>
    </li>
    </ul>

    For now, I have the post date in the H4 bit, but my original comp had that as a customizable field that the client could change at will, as easily as they can change the post title.

    So. Is there a plugin that I can do that with, or am I SOL?

    Thanks for any and all help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter volfro

    (@volfro)

    I just re-read this post. Is it clear what I’m asking for?

    (If it’s not: I need a plugin that can give my client an field from within the wp-admin interface, where they could enter brief sub-head text that I could enclose in the <li class="subHead"><h4>, the way I’ve done the actual post title.)

    Thread Starter volfro

    (@volfro)

    I’ve since streamlined the HTML; PHP now produces:

    <li class="entry">
         <h3 class="mainHead">Article Title</h3>
         <h4 class="subHead">Article date (but this is the part I'd like to be user-updatable via admin interface)</h4>
         <div class="post">
             <p>The entry</p>
         </div>
    </li>

    Are there any plugins that can do this? It needs to be updatable without any finagling via the WYSIWYG interface in the Admin/Write section. This customer wouldn’t be comfortable with having to edit code.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    You’d probably have to make a custom plugin for this, I’m not aware of any that do this specifically and it seems pretty esoteric to be a generally available plugin.

    Thread Starter volfro

    (@volfro)

    Blast. That’s what I was afraid of. Perhaps I’ll have to dive into WP plugins much sooner than I anticipated…

    Thread Starter volfro

    (@volfro)

    Alright. Problem solved. The HTML looks like this now:

    <li class="entry">
        <h2>main header</h2>
        <h3>Subheader</h3>
        <p>Entry contents</p>
    </li>

    I just used CSS selectors to style and float the heads to the left. All they have to do is select the appropriate header from within TinyMCE (using the Advanced WYSIWYG Editor plugin). Hopefully they won’t have any problems with that.

    Now I’ve got two other problems to tackle…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘sub-head generator’ is closed to new replies.