简体   繁体   English

消除WordPress主题中的空白

[英]Eliminating White Space in WordPress Themes

How do I raise the contents closer to the head? 我如何将内容物抬高到更靠近头部? The Left column should be closer to the dancing baby. 左栏应更靠近跳舞的婴儿。 The main area (starts with About Us) should be closer to the menu Fun Fun Fun. 主要区域(以About Us开头)应该靠近菜单Fun Fun Fun。 Don't worry about the white space above the menu... I have plans for that area. 不用担心菜单上方的空白...我已经为该区域制定了计划。 AND... can the answer help with other WordPress themes? AND ...答案可以帮助其他WordPress主题吗? ie; is there some CSS coding to do? 有一些CSS编码可以做吗?

http://fun.mrchuckw.com http://fun.mrchuckw.com

The best thing to do for long-term learning and development of WordPress themes is to learn how to use the developer tools in Firefox (or Firebug ) or Chrome or Safari or IE . 长期学习和开发WordPress主题的最佳方法是学习如何在Firefox (或Firebug ), ChromeSafariIE中使用开发人员工具。

Like this: 像这样:

Those tools will allow you to see what's loading on your site and in the theme and let you work with and change the CSS and HTML and see the results before you make changes to the style sheet and templates of the theme. 这些工具将使您能够查看网站和主题中正在加载的内容,并可以在更改样式表和主题模板之前使用和更改CSS和HTML并查看结果。

And, make a child theme of your MetroX theme so any changes you make will stay if you update the parent theme. 并且,将MetroX主题作为子主题,以便在更新父主题时所做的任何更改都将保留。 See Child Themes « WordPress Codex 查看儿童主题«WordPress Codex

I read through the page's source code, you want to open your theme's CSS page, this link here. 我通读了页面的源代码,您想打开主题的CSS页面, 链接位于此处。 Under the "==========Header=========" section, you should reduce the values of (or completely remove) the padding/margin-top . “ ========== Header =========”部分下,您应该减小(或完全删除) padding / margin-top的值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM