Custom Portfolio Template

Hi,

I have been searching through the forum and see that many people have been asking about the same issue I am currently looking at. I am working from the Agency demo/Ethos stack and want to create a full page layout for the portfolio section.

So far, I have followed RueNel’s example shown here: https://theme.co/apex/forum/t/using-post-type-templates/13698/2
I have reviewed the Customization best practices here: https://theme.co/apex/forum/t/customizations-best-practices/205
Also looked at the WP core updates shown here: https://make.wordpress.org/core/2016/11/03/post-type-templates-in-4-7/
Along with many other posts on the topic. Nothing is working so far…

Here is the code that I am working with. I started with the template_blank_1.php file and added RueNel’s piece of code, renamed the file to fullwidth_layout.php then uploaded my file to x-child/framework/ethos/views

What am I doing wrong and how can I get a full width portfolio template?

Thanks in advance,
Dawn

Hi Dawn,

Thanks for writing in! You need to add your template file into the root of your child theme. Please check the following example which is simple to understand (https://theme.co/apex/forum/t/building-a-custom-template/30350/4?u=mldarshana).

Hope that helps.

It’s not working yet. I am using X, not Pro. Would the instructions still be the same?

Hi There @isdg01

Did you activate your child theme and tested it? To avoid further confusions, please provide us with your WordPress login credentials in a secure note along with your FTP credentials to check your issue further.

Thanks!

Yes, I am working in a child theme, and I am making progress although still need some help.
I have put this into my child theme root folder:

And I have added this to my child theme framework/ethos/views folder:

Here is what I am seeing after adding some content:

What I need is for the page to be full width, not gray on the right. This is also for a portfolio template, but it is only showing up in the Page builder section, not in the Portfolio section. I don’t have a problem building in the page section if I can get it to tie into the portfolio.

I will provide access in secure note. Thanks so much for your help.
Dawn

Hi Dawn,

While that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

Place your custom portfolio template inside your child theme’s root directory (\wp-content\themes\x-child), then named that custom template as single-x-portfolio.php

https://codex.wordpress.org/Post_Type_Templates

Or

You can make your default portfolio template fullwidth by using the custom CSS provided by Ruenel here.

Hope it helps,
Cheers!

OMG! That is exactly what I have been looking for - making the default template fullwidth. I knew it shouldn’t have been that complicated! Thank you @friech and @RueNel!!!

You are most welcome!
It’s good to know that it has worked for you.

Hi Again,

Now that I have my portfolio pages adjusted to full width, I would like to remove the spacing above the headline so the slider shows in full. How would I do that? See purple bar in screenshot.

Thanks,
Dawn

Hi Dawn,

It seems you remove the feature image and extra area of the portfolio, currently the space above your Slider now is the first section’s top padding.



Inspect your section and adjust that.

Cheers!

That section seems to be hiding on me but I did find a place to “remove spacing” that worked. Thanks for pointing me in the right direction.

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.