Community Forums › Forums › Archived Forums › Design Tips and Tricks › Problems with an wrap :-S
- This topic has 5 replies, 2 voices, and was last updated 7 years, 10 months ago by Gary Jones.
-
AuthorPosts
-
May 5, 2016 at 11:54 am #185041SchneiderSMember
Hey,
i wanna make an full-width Page Template for some pages, for example this one: http://wernfried-huebschmann.de/maas
I followed the instructions from here: https://www.youtube.com/watch?v=blI6yqryJUo and here: http://www.billerickson.net/full-width-landing-pages-in-genesis/
But i don't get the full width. It looks like that there is an wrap in my template? But i can't find any wrap there. So i set the max-width of the site-inner in my Stylesheet to 100%. But then: the whole site is going full width. But i wanna have only this Page Template with an full-width: 100%.
Can you give me an idea how i can set up this page temlate to full-width but without tuching the main site-inner?
Thank you very much for your time!
http://wernfried-huebschmann.de/maasMay 8, 2016 at 10:32 am #185185Gary JonesMemberYour CSS could include a selector that only targets the page template class that is added to the body element.
.page-template-default ... { ... }
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
May 8, 2016 at 5:45 pm #185227SchneiderSMemberThank you very much Gary Jones!
I have tested it with an Plugin: Genesis Dambuster and it works very well. But i don't like plugins. I preferred function and working dirrectly in the code.
It looks like, that this plugin is using only an function. Is that possible? Is there any function to get full width without plugin? I have tested several functions but no one works.
Thank you very much for your time!
May 9, 2016 at 1:32 am #185253Gary JonesMember> But i don't like plugins. I preferred function and working dirrectly in the code.
There is nothing wrong with having code in a plugin. They aren't special in any way - it's just a different file to keep related logic in. Having code in plugins is usually far more advantageous then stuff it all into functions.php.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
May 13, 2016 at 10:12 am #185573SchneiderSMemberThank you Gary for your advice. you're right but i think thats an like an tightrope. Too much Plugins will kill the Pagespeed.
May 13, 2016 at 3:16 pm #185590Gary JonesMemberToo much Plugins will kill the Pagespeed.
I'm afraid you're wrong. Too many badly coded plugins will affect performance.
Plugins which do lots of database complex reads and writes, or disk IO (reading and writing from the filesystem), or makes external requests (interacts with some 3rd party service) - they are the ones that cause a site to slow down.
A plugin which just holds the same snippet of code that you'd otherwise put into theme's functions.php, has no performance impact at all, compared to keeping that snippet in functions.php. Plugin which just register a post type, hook a function call in somewhere, add in some admin change or whatever, are all light - you could easily have (and I have my own site and client sites that do) 60-100 plugins of these very specific plugins, because having them as small modules make them easier to manage.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
-
AuthorPosts
- The topic ‘Problems with an wrap :-S’ is closed to new replies.