Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1160171
    Jennifer P
    Participant

    Hi,

    I don’t know why this started happening, but when I switched from Renew to Ethos for the blog, it started showing the entry titles as “undefined” instead of pulling the title in. Can you help? I’ll put the web info below.

    Thanks!

    #1160173
    Jennifer P
    Participant
    This reply has been marked as private.
    #1160198
    Jennifer P
    Participant

    Ohhh, so it was the custom javascript I added to make the under construction page’s subhead have a link (added at the suggestion from a thread i found here in the forum):

    jQuery( document ).ready(function() {
    	var content = jQuery('.x-under-construction h2').html();
    	content = '<a href="http://shop.writerobinson.com/">' + content + '</a>';
    	jQuery('h2').html( content );
    });
    

    Any reason why this would cause my entry titles to disappear?

    #1160339
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! You can just update your custom JS code and use this instead:

    jQuery( document ).ready(function() {
      if( jQuery('.x-under-construction').length > 0 ) {
    	var content = jQuery('.x-under-construction h2').html();
    	content = '<a href="http://shop.writerobinson.com/">' + content + '</a>';
    	jQuery('h2').html( content );
      }
    });

    Hope this helps. Kindly let us know.

    #1160824
    Jennifer P
    Participant

    Thanks! That did it!

    #1161025
    Rue Nel
    Moderator

    You’re welcome! We’re happy to help you out.
    If you need anything else we can help you with, don’t hesitate to open another thread.

  • <script> jQuery(function($){ $("#no-reply-1160171 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>