• Resolved LucasHilty

    (@lucashilty)


    The stylesheet for WP Job Manager loads when I follow the link to all listings. From that page, I can use the selector to filter by category, and all is well. However, I also use links to point to listing category archives (created with the shortcode, e.g., [jobs categories=”teachers-wanted”]). Those category pages do not load the stylesheet and thus the listings are displayed without styling.
    Is there any way to specify the stylesheet on those pages as well?

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter LucasHilty

    (@lucashilty)

    Update: I’ve enqueued the correct stylesheet in the page’s header, so the problem is solved. I am curious, though, if the plugin gives me options for managing that in a different way.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi!

    It’s odd that the CSS wasn’t enqueued if you’re using the shortcode.

    I also use links to point to listing category archives (created with the shortcode

    so you just created a random page which included the shortcode? And that didn’t load the stylesheets?

    Thread Starter LucasHilty

    (@lucashilty)

    Yes.
    I moved from another plugin to WP Job Manager. I retained the old links and replaced the page content.
    I am using Breeze and Cloudflare, so perhaps there’s an issue there.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Could you point me to a page with the shortcode, please, so I can take a look?

    Thread Starter LucasHilty

    (@lucashilty)

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Well, the page loads normally for me, BUT I see this javascript error in my console:

    `
    Uncaught SyntaxError: Unexpected string
    26breeze_2481f090199d3c5b940e98d0c43b46c5.js:1 Uncaught TypeError: Cannot read property ‘top’ of undefined
    at breeze_2481f090199d3c5b940e98d0c43b46c5.js:1
    at dispatch (breeze_bb33093a8d4f68199c4ab6702f3976e4.js:1)
    at r.handle (breeze_bb33093a8d4f68199c4ab6702f3976e4.js:1)
    `

    So maybe your hunch is correct, that Breeze is getting in the way here.

    Thread Starter LucasHilty

    (@lucashilty)

    Yes, I imagine that may be the cause of the error. The page loads normally since I am enqueuing the stylesheet.
    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘CSS doesn’t load on category pages’ is closed to new replies.