Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #733607

    Hello,

    i want to remove the whole post-tilte entry title from blog posts. (Note: Not just the Link)

    The following custom css is not what i need:
    This code does not remove the h1 tag from the code….

    .post-title.entry-title {
    display: none! important;
    }

    For the pages it works for me….therefore i enabled “display only breadcrumbs” in the child theme settings and i added some code in the function.php.
    can you help me out?

    Thanks!!

    My current custom css:

    .big-preview.single-big {
    display: none;
    }

    div .wp-caption {
    border: none;
    }

    My Current function.php in child theme:

    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    add_filter(‘comments_open’,’__return_false’, 10, 2);

    add_theme_support(‘avia_template_builder_custom_css’);

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(“.rel-nofollow a”).attr(“rel”, “nofollow”);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_script’);

    add_filter(‘avf_title_args’, ‘avia_remove_h1_hidden_title’, 10, 2);
    function avia_remove_h1_hidden_title($args,$id)
    {
    $header_settings = avia_header_setting();
    if($header_settings[‘header_title_bar’] == ‘breadcrumbs_only’)
    {
    $args[‘html’] = “<div class='{class} title_container’><div class=’container’>{additions}</div></div>”;
    }

    return $args;
    }

    #734628

    Hey Eisi101,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.

    Best regards,
    Nikko

    #734637

    You find my Login credentials in the private data field.
    Thank you so much!

    Alex

    #735194

    Hi,

    I just checked it again and it seems you have already managed to remove it since I couldn’t see the post-title anymore even in the source code of the page.

    Best regards,
    Nikko

    #735202

    Hi Nikko,

    thank you for your message, but…

    … if i publish a PAGE, i have to define a H1 heading in the content Box (this is what i like)
    ….if i publish a POST, the system takes the headline and i have not to define a H1 heading in the content box. Unfortunately the heading here has a nother design than the H1 Headings of the PAGES.

    Do you know what i mean? ;)
    Thank you in advance,

    Alex

    #736270

    Hi Alex,

    Try copying loop-index.php from the parent theme (Enfold), you can find it inside includes folder. Go to your child theme a create a new folder and name it includes then paste loop-index.php inside it. Then find this code:
    echo "<span class='post-meta-infos'>";
    above it you should find:
    echo $title;
    replace it with:
    //echo $title;
    Let us know if this helps :)

    Regards,
    Nikko

    #736470

    Hi!!

    Yeah – it works! Thank you very much !!
    Alex

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Delete the Title in posts (post-title entry-title)’ is closed to new replies.