WordPress.org

Ready to get started?Download WordPress

Forums

How to remove the "Post" word and box at the top of pages? (18 posts)

  1. TeresaMJ
    Member
    Posted 3 weeks ago #

    I cannot find a way to remove the word "POST" at the top of pages.

    This is the url: http://www.littlemissfluffet.com

    Thank you.

  2. Hey there.

    The image and the text are part of the same span, if you want rid of both you could hide them with some simple CSS:

    .art-postheader{display:none}

    There is a chance that the theme has a CSS field in the options, if not then you can make a child theme:

    http://codex.wordpress.org/Child_Themes
    http://premium.wpmudev.org/blog/create-wordpress-child-theme/

    Or you can instead use a plugin if you like:

    http://wordpress.org/plugins/custom-css-manager-plugin/screenshots/

    http://wordpress.org/plugins/my-custom-css/screenshots/

    http://wordpress.org/plugins/pc-custom-css/

    http://wordpress.org/plugins/imporved-simpler-css/screenshots/

    Have a fantastic day! :)

  3. TeresaMJ
    Member
    Posted 3 weeks ago #

    The word "Post" went away after adding this code.

    However, the title I put for the post is still not showing. It should say "Test" as a title.

    Just like on this site, http://littlehouseofamericangirl.com/
    the title of the post is Jaclynn's Q&A

  4. Hey again.

    It might be a silly question, but did you actually change the title? Or just the body?

    I ask because in the body of the article I see the word "test". Looking at the code I see this:

    <div class="art-postmetadataheader">
    <h2 class="art-postheader">
    <span class="art-postheadericon">Post</span>
    </h2>
    </div>

    Which implies that Post was the articles title. Maybe you could show a screenshot of the editor page where you have the slug and title?

    I see the theme was made with Artisteer, I don't have access to the theme so I can't install and test myself. Sorry.

    Take care.

  5. TeresaMJ
    Member
    Posted 3 weeks ago #

    I made the title and post say test. As of now, I updated the title of the post to be Test Title and the post to say test post.
    So, it is definitely the post showing and not the title.

    I think I might have messed up the css, when I was searching for ways to get the word "POST" to disappear. Maybe I put in the code for not showing the post title. Unfortunately, I have no idea where in the css I did that :(

    Is there a way to add custom css to show the post title, and will that override what I already changed?

    Here is a current screenshot of the post I did:
    http://www.littlemissfluffet.com/test_screenshot.jpg

    Thank you!

  6. Hey there.

    The css wouldn't generate the title, it simple styles or hides it.

    Could you make the themes code available so I can see it. I'm thinking that in the code you're not using the_title function and instead it's a hardcoded Post for some reason.

    Hard to know without seeing the code of the theme. As I can't download it and see it, it limits me.

    Take care.

  7. TeresaMJ
    Member
    Posted 3 weeks ago #

    Yes, I mean I think I hid the post titles. That's why it's not showing.

    Here is one of the custom css revisions I did:
    http://www.littlemissfluffet.com/css_screenshot.jpg

    How do you want the themes code? Is it one of the files under editing? Shall I copy and paste it here? Not sure which code exactly. I will send as soon as I hear from you.
    Thank you!

  8. Hey there,

    I don't see entry-title in your pages code there, the display none only hide it so you should still see it. That css targets the page class with entry-title.

    Chances are the page code I need to see is single.php use Pastebin as that should be easier to read if it's a huge code block:

    http://pastebin.com/

    Let me know.

  9. TeresaMJ
    Member
    Posted 3 weeks ago #

    Ok, here is content-single.php:

    <?php
    /**
    *
    * content*.php
    *
    * The post format template. You can change the structure of your posts or add/remove post elements here.
    *
    * 'id' - post id
    * 'class' - post class
    * 'thumbnail' - post icon
    * 'title' - post title
    * 'before' - post header metadata
    * 'content' - post content
    * 'after' - post footer metadata
    *
    * To create a new custom post format template you must create a file "content-YourTemplateName.php"
    * Then copy the contents of the existing content.php into your file and edit it the way you want.
    *
    * Change an existing get_template_part() function as follows:
    * get_template_part('content', 'YourTemplateName');
    *
    */
    global $post;
    theme_post_wrapper(
    array(
    'id' => theme_get_post_id(),
    'class' => theme_get_post_class(),
    'title' => theme_get_meta_option($post->ID, 'theme_show_post_title') ? get_the_title() : '',
    'heading' => theme_get_option('theme_single_article_title_tag'),
    'before' => theme_get_metadata_icons('date,edit', 'header'),
    'content' => theme_get_content(),
    'after' => theme_get_metadata_icons('', 'footer'),
    'comments' => theme_get_comments()
    )
    );
    ?>

  10. TeresaMJ
    Member
    Posted 3 weeks ago #

    Is this what you need to see? There wasn't one called just "single.php"

  11. TeresaMJ
    Member
    Posted 3 weeks ago #

    How can I overwrite this?

    .page .entry-title {
    display: none;

    If I want it to display again, what should the code be?

  12. How can I overwrite this?

    .page .entry-title {
    display: none;

    If I want it to display again, what should the code be?

    If it's what you put there, just remove it again. Or if you need for some reason to leave it but then change it later you would change none to initial so that it uses the default value.

    With regards to the code you quoted, they assign the title there to an associative array. I guess it's then available through some variable in the code.

    I went and downloaded a theme from their site: http://www.artisteer.com/?template_id=134&p=website_template

    I wanted to see how they do it. Perhaps it's different from yours but they have a single.php and in their they then call the content-single.php template which does what you posted above pretty much. The function is made in wrappers.php and this is where you should have under the function theme_post_wrapper():

    if (!theme_is_empty_html($title)) {
    	echo '<'.$heading.' class="art-postheader">'.$title.'</'.$heading.'>';
    }

    Checks the title is not empty and then puts it out.

    Because on every post on your site it has:

    <h2 class="art-postheader"><span class="art-postheadericon">Post
                                            </span></h2>

    I'd guess (and could be wrong) that somewhere the word Post was hardcoded. Can you share the function with the wrappers.php file, it's located under the library folder?

    Take care.

  13. TeresaMJ
    Member
    Posted 2 weeks ago #

    Here is the wrappers.php:
    <?php

    // $style = 'post' or 'block' or 'vmenu' or 'simple'
    function theme_wrapper($style, $args) {
    $func_name = "theme_{$style}_wrapper";
    if (function_exists($func_name)) {
    call_user_func($func_name, $args);
    } else {
    theme_block_wrapper($args);
    }
    }

    function theme_post_wrapper($args = '') {
    $args = wp_parse_args($args, array(
    'id' => '',
    'class' => '',
    'title' => '',
    'heading' => 'h2',
    'thumbnail' => '',
    'before' => '',
    'content' => '',
    'after' => '',
    'comments' => ''
    )
    );
    extract($args);
    if (theme_is_empty_html($title) && theme_is_empty_html($content))
    return;
    if ($id) {
    $id = ' id="' . $id . '" ';
    }
    if ($class) {
    $class = ' ' . $class;
    }
    ?>
    <article<?php echo $id; ?> class="art-post art-article <?php echo $class; ?>">
    <?php
    theme_ob_start();
    ?>
    <h2 class="art-postheader"><span class="art-postheadericon">Post
    </span></h2>
    <?php echo $before; ?>
    <?php
    $meta = trim(theme_ob_get_clean());
    if (strlen($meta) > 0) {
    echo '<div class="art-postmetadataheader">'.$meta.'</div>';
    }
    ?>
    <?php echo $thumbnail; ?><div class="art-postcontent clearfix"><?php echo $content; ?></div>
    <?php
    theme_ob_start();
    ?>
    <?php echo $after; ?>
    <?php
    $meta = trim(theme_ob_get_clean());
    if (strlen($meta) > 0) {
    echo '<div class="art-postmetadatafooter">'.$meta.'</div>';
    }
    ?>

    <?php echo $comments; ?></article>
    <?php
    }

    function theme_simple_wrapper($args = '') {
    $args = wp_parse_args($args, array(
    'id' => '',
    'class' => '',
    'title' => '',
    'heading' => 'div',
    'content' => '',
    )
    );
    extract($args);
    if (theme_is_empty_html($title) && theme_is_empty_html($content))
    return;
    if ($id) {
    $id = ' id="' . $id . '" ';
    }
    if ($class) {
    $class = ' ' . $class;
    }
    echo "<div class=\"art-widget{$class}\"{$id}>";
    if (!theme_is_empty_html($title))
    echo '<' . $heading . ' class="art-widget-title">' . $title . '</' . $heading . '>';
    echo '<div class="art-widget-content">' . $content . '</div>';
    echo '</div>';
    }

    function theme_block_wrapper($args) {
    $args = wp_parse_args($args, array(
    'id' => '',
    'class' => '',
    'title' => '',
    'heading' => 'div',
    'content' => '',
    )
    );
    extract($args);
    if (theme_is_empty_html($title) && theme_is_empty_html($content))
    return;
    if ($id) {
    $id = ' id="' . $id . '" ';
    }
    if ($class) {
    $class = ' ' . $class . ' ';
    }

    $begin = <<<EOL
    <div {$id}class="art-block{$class} clearfix">

    EOL;
    $begin_title = <<<EOL
    <div class="art-blockheader">
    <$heading class="t">
    EOL;
    $end_title = <<<EOL
    </$heading>
    </div>
    EOL;
    $begin_content = <<<EOL
    <div class="art-blockcontent">
    EOL;
    $end_content = <<<EOL
    </div>
    EOL;
    $end = <<<EOL

    </div>
    EOL;
    echo $begin;
    if ($begin_title && $end_title && !theme_is_empty_html($title)) {
    echo $begin_title . $title . $end_title;
    }
    echo $begin_content;
    echo $content;
    echo $end_content;
    echo $end;
    }

  14. TeresaMJ
    Member
    Posted 2 weeks ago #

    This, I can't remove. It's a custom css, and I would have to replace it with something. As far as I understand (and I could be wrong) but each custom css I create overwrites the previous one. And it's completely blank, except for whatever I write. It's under Appearance/Edit CSS.

    .page .entry-title {
    display: none;

  15. TeresaMJ
    Member
    Posted 2 weeks ago #

    Thanks for all your time, by the way. I really appreciate it :)

  16. Hey again.

    You're most welcome by the way :)

    In your code, it's right there:

    <h2 class="art-postheader"><span class="art-postheadericon">Post
    </span></h2>

    Post is hard coded. Change that to:

    <h2 class="art-postheader"><span class="art-postheadericon"><?php echo $title; ?>
    </span></h2>

    As it's custom CSS you can just edit and remove it if you don't need it. If you're using the CSS I originally gave then you'll want to remove that as well because you don't want to hide the Post, you want it to show the Post Title which the code I just gave should help with.

    Also, use Pastebin when post huge chunks of code like that. It's easier to read. :)

    http://pastebin.com/

    Take care.

  17. TeresaMJ
    Member
    Posted 2 weeks ago #

    Thank God for geniuses like you! It works now! We've got post titles!
    http://littlemissfluffet.com/

    Thank you so much! Have a blessed day!

  18. You're most welcome, glad I could help :)

Reply

You must log in to post.

About this Topic