WordPress.org

Ready to get started?Download WordPress

Forums

Attitude
[resolved] Bug report, attitude theme (6 posts)

  1. shirazdrum
    Member
    Posted 1 year ago #

    Hi there,

    jQuery is only loading on front page not other pages.

    Uncaught ReferenceError: jQuery is not defined

    For two files, backtotop.js and tinynav.js

    Thanks again for sharing your work.

  2. Ryan Cowles
    Member
    Posted 1 year ago #

    Do you have a link to a public facing example that we can take a look at?

  3. robin90
    Member
    Posted 1 year ago #

    Hi shirazdrum,

    Thanks for reporting the bug. Actually we already found it and submitted the version update with the fix just yesterday. The fixed updated version will be out soon with in the week.

    Anyways thanks again for reporting the bug.

    Regards,
    Rabin

  4. shirazdrum
    Member
    Posted 1 year ago #

    @Ryan: thanks for the help but this was directed towards the developer of the theme so he could fix it for others.

    @Team Horse (developer),

    Enqueqe the WordPress jQuery before the tinynav.js and backtotop.js scripts

    on line 53 of functions.php in the library directory, add it like so:

    wp_enqueue_script( 'jquery', ATTITUDE_JS_URL. '/jquery.js' );

    or load it earlier any other way.

  5. shirazdrum
    Member
    Posted 1 year ago #

    @Rabin Shrestha

    That's great, keep up the good work, it's refreshing to see a well coded theme :))

    Thanks, Chris

  6. shirazdrum
    Member
    Posted 1 year ago #

    Also if I may make a few suggestions:

    Incorporate Meta Boxes into the theme for title tag rewrite, meta keywords, meta descriptions, and indexing options and separate the H1 tags from site title and have them pull the page title instead to avoid duplicates.

    Also inlining or combining your small JS files such as the two mentioned above and comment-reply.min.js will improve the performance significantly.

    Loading both Google fonts in one link will reduce the load by one more request and also protects against blocking on older browsers which only have 2 connections open per domain at a time.

    Do it like so:

    href="http://fonts.googleapis.com/css?family=Droid+Sans

    Overall , It's a great theme and I gave it five stars. I'll send you a few bucks for beer and aspirin money shortly:)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic