This topic has 11 replies, 2 voices, and was last updated 9 years by DiegoBRRSPF.
-
Author
-
December 2, 2014 at 06:46 #37277DiegoBRRSPFParticipant
Hi!
I’m enjoying work with Kleo more and more!
At the moment, I need to make a full-width template page with just the two superior menu bars (bottom and nav) and the footer. And, in the middle, I don’t want margins. My objetive is open and external website at the middle, keeping the two superior menus and the footer.
So, in a nutshell, I need to get rid of the “Title/Breadcrumb Section” and the main area margins.
The attached image helps to understand 😉
Thanks in advance!Attachments:
You must be logged in to view attached files.December 2, 2014 at 07:06 #37281sharmstrModeratorTheme options – Layout Settings
– Site layout wide
– Main layout 1 column
– Page title location Main section
– Quick css, add the followingCOPY CODE.container { max-width: 100%; }
If you want to hide the title, add this as well
COPY CODEh1.page-title { display: none; }
Theme options – Header Options
– Show breadcrumb off
– Main menu info blankThat should get you close. Report back with anything else.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 2, 2014 at 11:58 #37289DiegoBRRSPFParticipantHi sharmstr!
Thanks a lot for your incredibly prompt response.
I understand you are suggesting changing the theme layout proprieties, but I want just one page template with this characteristics, not the entire site.
My idea was create a template page based on the “full-width.php” and make the changes. But its just my idea, I don’t know if this is the best way.
How can I apply your tips for just one page?Thanks again!
December 2, 2014 at 16:54 #37323sharmstrModeratorKleo (and other themes) loads parts of the page using several different .php files. You’ll have to create new files for the sections that need to be changed so you can call your own custom files and functions. Its more work than I’m willing to do for you, but here’s some things that should help.
– Start will a copy of /page-templates/full-width.php.
– Put this is your childs function.php file. It will print out what files the page loads in the page source. From there you can figure out what sections you need to override (example: instead of calling general-before-wrap.php where the container class is set, you can call custom-general-before-wrap.php)
COPY CODE/** * show included template files */ add_action('all','template_snoop'); function template_snoop(){ $args = func_get_args(); if( !is_admin() and $args[0] ){ if( $args[0] == 'template_include' ) { echo "<!-- Base Template: {$args[1]} -->\n"; } elseif( strpos($args[0],'get_template_part_') === 0 ) { global $last_template_snoop; if( $last_template_snoop ) echo "\n\n<!-- End Template Part: {$last_template_snoop} -->"; $tpl = rtrim(join('-', array_slice($args,1)),'-').'.php'; echo "\n<!-- Template Part: {$tpl} -->\n\n"; $last_template_snoop = $tpl; } } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 2, 2014 at 16:56 #37324sharmstrModeratorForgot to mention, if you truly need it for a single page and not a page template, you can use VC to set css for that page only. Just click on the gear icon at the top.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
Attachments:
You must be logged in to view attached files.December 2, 2014 at 17:55 #37337DiegoBRRSPFParticipantHi sharmstr!
Thanks a lot for your tips. I’ll try to make a template page, maybe calling a more experienced developer to help.
But, in fact, this option of having just one page fits my needs. What are the CSS instructions I have to set?
I promise it will be my last message about this subject 🙂
Thanks again!
December 2, 2014 at 17:57 #37340sharmstrModeratorI already gave them to you. See my first response.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 2, 2014 at 18:16 #37343DiegoBRRSPFParticipantHi sharmstr!
Sorry, I forgot to write. I tried to use your instructions of the first response, and with one or two more changes in the CSS and style settings (using VC) I get almost the result I wanted. The only thing I couldn’t get is to hide the breadcrumb section. With your instruction I successfully hide the page title, but the breadcrumb bar is still on.
Anything I did wrong?
December 2, 2014 at 18:22 #37346sharmstrModeratorYou can set all of that at the bottom of the page in the settings.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 2, 2014 at 18:34 #37348DiegoBRRSPFParticipantI’m sorry, I’m really embarrassed… What a stupid question…
I change the settings and it’s all fine now.
Thanks a lot for your help and patience.
My best wishes.
December 2, 2014 at 18:45 #37349sharmstrModeratorNo problem 🙂
There’s a lot of settings… everywhere. I’ve got almost a year working with Kleo on you 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 2, 2014 at 18:58 #37354DiegoBRRSPFParticipant😀 hahahahaha
That’s right.
Thanks again. I’ll probably bother you really soon. 😀 hahahahah
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.