- This topic has 10 replies, 3 voices, and was last updated 7 years ago by Leo.
-
AuthorPosts
-
November 7, 2017 at 4:43 am #417699adam
I’m using a job board plugin, and it generates pages dynamically with a unique slug. These pages (job descriptions) default to automatically reference the template with sidebar right. Any idea how I can target just that slug hierarchy and apply a full width template to all child pages with that slug?
November 7, 2017 at 8:33 am #417865LeoStaffCustomer SupportHi there,
What’s the slug? Just checked the home page you linked and I don’t see anything in the body tag.
Can you link me to a page with that plugin activated?
November 7, 2017 at 8:44 am #417885adamThe slug is ‘indeed-jobs’, but that’s being generated from the plugin. I’m not sure why you don’t see any content in the body tag. You looked at the homepage or the link I sent?
November 7, 2017 at 8:49 am #417894adamsorry, go to /job-listings
November 7, 2017 at 8:53 am #417900LeoStaffCustomer SupportHmm there isn’t
indeed-jobs
in the body tag that I can see.Here are all the body tags in one of the job listing pages: https://s1.postimg.org/72m4uvhv0v/2017-11-07_0857.png
Maybe try this?
.ehf-template-generatepress .sidebar { display: none; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
November 7, 2017 at 10:00 am #417954adamThe .sidebar is displaying as none now.
November 7, 2017 at 11:02 am #417985LeoStaffCustomer SupportJust to make sure…so it’s working?
November 20, 2017 at 11:57 am #429255adamHi Leo,
This issue is still unfixed…Here’s a link to the “Job Listings” page.
http://633.ea8.myftpupload.com/job-listings/
Once you click on a job, and go to the job description page, instead of passing the content through and using the same template, the dynamically created description page is loading the default template with sidebar. Is it possible to override the default template to the same full width template, instead of the sidebar template?
BTW, I did remove all plugins and started from scratch with nothing but the indeed plugin and the gp theme. Still having the same issue.
November 20, 2017 at 8:43 pm #429489TomLead DeveloperLead DeveloperDo you have access to edit this dynamically created page once it’s been created?
Usually we can use this filter: https://docs.generatepress.com/article/generate_sidebar_layout/
However, I’m not sure what the conditional would be to make sure we were on pages specific to job listings. Usually instead of creating pages, you would use a custom post type to create a “Job Listings” type, and then we could target the pages inside that post type.
November 20, 2017 at 11:26 pm #429555adamActually there were a few things messing with the layout. The “Header Footer Elementor” plugin (I used it for my footer), was injecting some strange padding in there, but more importantly, the sub menu item had a height: 100% which pushed the main content way down. Thinking that came from the GP parent theme though so maybe check that out. I fixed by changing this css:
.menu-item-has-children .dropdown-menu-toggle { height: inherit; }
Thanks!
November 21, 2017 at 6:38 am #429786LeoStaffCustomer SupportGlad you figured it out!
-
AuthorPosts
- You must be logged in to reply to this topic.