Viewing 6 replies - 1 through 6 (of 6 total)
  • Your CSS seems to be different on the pages. The one with the jobs shortcode gets it from the child theme and the one with the categories gets it from the additional CSS

    • This reply was modified 5 years, 6 months ago by braehler.
    Thread Starter [email protected]

    (@shaunloveideecom)

    Ah ok, thanks @braehler !

    I can’t think of a reason why that would happen. They’re both being enqueued from the functions file…

    I could understand if there were different styles on one over the other as this would mean one stylesheet was taking precedence over the other… but it’s just not seeing the styles at all… I can’t think why this page template would choose not to see the correct style sheet…

    Have you tried switching to a default template and see if the issue still happens?
    If not, than your theme is overriding the styles somewhere.
    Another solution could be that the wrong template is asigned to the page with the jobs shortcode
    Check this via : dashboard–> pages–> your page with the shortcode –> page atributes tempalte

    • This reply was modified 5 years, 6 months ago by braehler.
    Thread Starter [email protected]

    (@shaunloveideecom)

    I haven’t tried much yet to be honest but I’ll look at the theme and ensure the correct template is in use – Thanks for the help ??

    You′re welcome, let me know if it works

    Thread Starter [email protected]

    (@shaunloveideecom)

    Hey Braehler!

    Those things didn’t really affect anything, however, I have managed to fix it!

    Firstly, I noticed that the setting in WP job manager that tells it which page your jobs page is wasn’t pointing to the correct page. A silly mistake but that fixed the main jobs page.

    The trouble being, after that, I had 3 other ‘main’ jobs pages. WP Job Manager obviously doesnt allow you to choose multiple main job pages, so these other pages still were missing the styles.

    I noticed that when I added the shortcode into the main content area when editing the page, fixed things and showed the styles!! I also read that the shortcode needed to be executed inside a loop.

    So, after this, I tried to add a loop inside my template and execute it like that, this didn’t work, so I just deleted my custom template code and added the shortcode into the existing WordPress content area.

    So all working now. I’m not sure what the problem was but it possibly was something to do with it being in a loop, even though when I added a custom loop it didn’t work. Perhaps I did the custom loop incorrectly, who knows!

    Thanks for your help on this, appreciate you taking the time! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CSS Styles missing from [Jobs] shortcode’ is closed to new replies.