• Resolved po2416

    (@po2416)


    Hello,

    I am new in WordPress. I’ve changed home page to static page ABOUT US. I want to use blog for website news. My blog page is not a front page, it is on different NEWS page. Everything works fine except one thing there’s no page title on NEWS page. How can I display it?? Changing options on dashbord doesn’t help.

    Another question is: how can I get rid of blog tags like PUBLISHED, BY ADMIN, POSTED IN NEWS?? I am happy with a date of post, because it’s good to know when the post was published, but I don’t want to see these tags, because blog is used only on NEWS page, and no one except admin, can’t add a new post, so there is no point to show “BY ADMIN”.

    I will appreciate any help ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • How can I display it??

    By adding the title manually to your theme’s index.php template file.

    how can I get rid of blog tags like PUBLISHED, BY ADMIN, POSTED IN NEWS??

    Again, by editing the relevant template files in your theme.

    Thread Starter po2416

    (@po2416)

    More details please

    there’s no page title on NEWS page. How can I display it?

    in index.php (?), add:

    <?php if( is_home() && $blog_page = get_option('page_for_posts') ) :
    $blog_page_title = get_page($blog_page)->post_title;
    echo '<h3>' . $blog_page_title . '</h3>';
    endif; ?>

    details such as the location and the used html tags depend on your theme.

    get rid of blog tags like PUBLISHED, BY ADMIN, POSTED IN NEWS?

    possibly also in index.php (?)

    you are allowed to post a link to your site, and post the name of your theme.

    Thread Starter po2416

    (@po2416)

    https://alytausvaikai.lt/?page_id=116
    its a link of my NEWS page.
    When I added

    <?php if( is_home() && $blog_page = get_option(‘page_for_posts’) ) :
    $blog_page_title = get_page($blog_page)->post_title;
    echo ‘<h3>’ . $blog_page_title . ‘</h3>’;
    endif; ?>

    page title appeared behind post date. Any ideas why this happened?

    This is how index.php looks:

    <?php get_header(); ?>
    <div class=”art-layout-wrapper”>
    <div class=”art-content-layout”>
    <div class=”art-content-layout-row”>
    <div class=”art-layout-cell art-content”>
    <?php if( is_home() && $blog_page = get_option(‘page_for_posts’) ) :
    $blog_page_title = get_page($blog_page)->post_title;
    echo ‘<h3>’ . $blog_page_title . ‘</h3>’;
    endif; ?>
    <?php get_sidebar(‘top’); ?>……….

    I don’t comment on artisteer generated themes – they are too different and imho too complicated to customise.

    try their forum: https://www.artisteer.com/?forum_id=13&p=forum_topics (?)

    Thread Starter po2416

    (@po2416)

    how about PUBLISHED, BY ADMIN, POSTED IN NEWS? which of php file I should modify?? To get rid of those tags?

    Delete all files except header.php, footer.php, index.php, functions.php and style.css from your theme.

    Back it up first, I’m just guessing.

    Then edit index.php and remove and <?php reference to posted by etc.

    Thread Starter po2416

    (@po2416)

    Thanks for quick response. I find this link helpful:
    https://www.artisteer.com/?post_id=163814&p=forum_post
    I’ve modified functions.php file

    Thread Starter po2416

    (@po2416)

    couple of -[br]- after

    <?php if( is_home() && $blog_page = get_option(‘page_for_posts’) ) :
    $blog_page_title = get_page($blog_page)->post_title;
    echo ‘<h3>’ . $blog_page_title . ‘</h3>’;
    endif; ?>

    solved 1st issue

    Thread Starter po2416

    (@po2416)

    Thank you guys for your cooperation ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Blog page title’ is closed to new replies.