Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #978908

    Hi,

    I am using title only without breadcrumb as title bar content, but the title is always embedded as a permanent link within the H1 declaration. So the link css styles overrule the H1 styles and the permanent link only refers to the page which is currently being displayed. How to change the behaviour to have only a real H1 title text?

    Thanks,
    Joerg

    #979636

    Hey Wynnphotodesign,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    
    function remove_title_link(){
    ?>
    <script>
    (function($){
      $(document).ready(function(){
      $('.main-title.entry-title a').contents().unwrap();
      });
      })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'remove_title_link');

    Best regards,
    Mike

    #979701

    Mike,

    thanks a lot, that works fine.
    Now I tried to add the following in the Quick CSS section:

    h1.main-title.entry-title {
    font-size: 30px;
    color: #666666;
    font-weight: bold;
    }

    but nothing changes in the title section. Any idea?

    Thanks,
    Joerg

    #979753

    Ok,

    now it works. There additionally had been another spec in the extended styling menu for H1. And now

    #top .title-container.main-title, h1, .title_container .main-title {
    font-size: 18px;
    color: #666666;
    font-weight: 700;
    text-transform: uppercase;
    }

    works fine.

    Thanks,
    Joerg

    #979800

    Hi,
    Thank you for sharing your solution, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘title in title bar always appears as permanent link’ is closed to new replies.