Tagged: enfold, WP Job Manager
-
AuthorPosts
-
September 10, 2017 at 4:22 pm #850132
Hi there,
I’ve been looking through the forums but couldn’t find an answer to this…I’ve just installed the WP Job Manager plugin that seems to work pretty well with Enfold with one exception…
On individual job listings, it uses the company logo as a featured image – distorting it at the top of the post (see link in private message).
Is there any way to tell Enfold not to show a featured image for this post type please? (I’d like to still have featured images for regular blog posts).
Thanks in advance,
Sam
September 11, 2017 at 5:17 am #850332Hey sjwmobile,
Add the following to quick css. It should only target the job postings:
article.job_listing.type-job_listing .big-preview.single-big{ display:none; }
That should be about all you need to get the results you want. Let me know if this works for you.
Best regards,
Jordan ShannonSeptember 11, 2017 at 10:06 am #850397Perfect, thanks Jordan.
Is there a way I can edit the template that’s associated with individual job listings do you know? Ideally I’d like to add a right sidebar to them (that’s different to the sidebar I’ll use for the blog section) – appreciate any advice you can give.
Thanks,
Sam
September 11, 2017 at 11:52 am #850434Hi Sam,
You can change the Sidebar Settings of that page and choose what widget area you want to use, you can create a customized widget area if you don’t want the existing ones.
Best regards,
NikkoSeptember 11, 2017 at 11:59 am #850439Hi Nikko,
Thanks for your response. But how do you do this? The individual job pages have no option for sidebars within WordPress so assume I have to specify a sidebar somewhere in source code?
Thanks,
Sam
September 11, 2017 at 3:16 pm #850536Hi Sam,
Can you give us temporary admin access? so we can check the backend.
Best regards,
NikkoSeptember 11, 2017 at 3:25 pm #850541Sure – have set you up with admin level access (see private message)
Thanks,
Sam
September 12, 2017 at 6:46 pm #851164Hi,
I see what you mean, for the single job listing to have a sidebar, you would first need to use a child theme: http://kriesi.at/documentation/enfold/using-a-child-theme/ (instructions as well as the child theme is available in the link).
Next you need to create a file and call it sidebar.php and paste this code: https://pastebin.com/i7nuZ28u
Then create another file and call it single-job_listing.php and paste this code: https://pastebin.com/VfrJQBeH
This will allow you to use Sidebar Blog in Appearance > Widgets. Hope this helps :)Best regards,
NikkoSeptember 13, 2017 at 1:16 am #851302Hi Nikko,
Thanks for this. I’ve moved to the child theme and updated all my settings successfully.Have created those two .php files directly within the wp-content/themes/enfold-child directory.
I can now see a sidebar on individual job listings, but I’m not sure how I edit this? I’d like that sidebar to be unique to the job pages of the site… so not just the ‘display everywhere’ sidebar.
An aside, but how do I change the sidebar associated within individual blog posts also? (without using the ‘display everywhere’ sidebar)
Thanks,
Sam
September 14, 2017 at 7:46 am #851889Hi,
This plugin should help you with that.
// https://wordpress.org/plugins/widget-logic/
You can use conditional function like “is_single( ID HERE )” or “is_page( ID HERE )” to control the visibility of the widgets in the sidebar area.
// https://codex.wordpress.org/Conditional_Tags
Best regards,
IsmaelSeptember 21, 2017 at 1:42 am #854628Thanks Ismael. Installed the Widget Logic plugin, but unsure where I add the conditional statements?
If I wanted individual sidebars for both the individual job pages and individual blog posts – where (and what) conditional statements should I add please?Really appreciate your help.
Sam
September 21, 2017 at 1:13 pm #854820Hi,
In the widgets, you’ll find a new conditional logic field. You can use the “is_page()” for pages and “is_single()” or “is_singular()” conditional function for the posts.
// https://developer.wordpress.org/reference/functions/is_page/
// https://developer.wordpress.org/reference/functions/is_single/Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.