• I do have the projects page enabled and it is showing this text:

    ARCHIVES: PROJECTS

    A post type for your projects

    How can I delete ‘Archives’ and ‘A post type for your projects’?
    Thank you!

    • This topic was modified 1 year, 6 months ago by bogger1234.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @bogger1234,

    Thank you for reaching out to us.

    You can remove that text with this jQuery code to your child theme.

    jQuery(function($) {
    
      if( $('.post-type-archive-projects .archive-title').length ) {
        var arvTitle =  $('.archive-title').text();
        var NewArvTitle = arvTitle.replace('Archives: ', '');
        $('.archive-title').text(NewArvTitle);
      }
    
    });

    If you don’t have a child theme, alternatively you can add that script to your site with a plugin. Try https://wordpress.org/plugins/search/custom+javascript/.

    Hope that helps. Thank you!

    Thread Starter bogger1234

    (@bogger1234)

    Thank you for your quick reply. I included your script via the Custom JS plugin and it is included in my page now, but nothing changed.

    <!-- TC Custom JavaScript --><script type="text/javascript">(function($){
    
      $('.site-header .col-md-4').append('<h1 class="site-title">'+site_info.name+'</h1><h2 class="site-description">'+site_info.description+'</h2>');
    
    })(jQuery);
    
    jQuery(function($) {
    
      if( $('.post-type-archive-projects .archive-title').length ) {
        var arvTitle =  $('.archive-title').text();
        var NewArvTitle = arvTitle.replace('Archives: ', '');
        $('.archive-title').text(NewArvTitle);
      }
    
    });
    </script>

    Could you please take a 2nd look at this?

    • This reply was modified 1 year, 6 months ago by bogger1234.

    Hi @bogger1234,

    Thank you for getting back and updating me.

    Upon checking with my web browser’s source code viewer, your site is currently not having the code I’ve suggested.

    My guess the code is being blocked by a caching system enabled in your site, that needs to be flushed if you could.

    Thread Starter bogger1234

    (@bogger1234)

    It took my a while to figure out how to add that code and now it’s included. But the Archive Test ist stell there.

    An error ist thrown:
    Can’t find variable site_info

    Line 2934

    <!-- TC Custom JavaScript -->
        <script type="text/javascript">
        (function($) {
    
            $('.site-header .col-md-4').append('<h1 class="site-title">' + site_info.name + '</h1><h2 class="site-description">' + site_info.description + '</h2>');
    
        })(jQuery);
    
        jQuery(function($) {
    
            if ($('.post-type-archive-projects .archive-title').length) {
                var arvTitle = $('.archive-title').text();
                var NewArvTitle = arvTitle.replace('Archives: ', '');
                $('.archive-title').text(NewArvTitle);
            }
    
        });
        </script>

    any suggestions? Thank you

    • This reply was modified 1 year, 5 months ago by bogger1234.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Projects page shows unwanted text’ is closed to new replies.