为第二个侧边栏腾出空间
我在我的网站上安装了螺丝刀 WordPress 主题 (http://wordpress.org/extend/themes/screwdriver)
我对我的functions.php 文件进行了必要的更改,然后创建了一个 sidebar-custom.php 文件,现在新的侧边栏显示在我的 WordPress 帐户中,但我被告知现在需要在主题布局中为新的侧边栏创建空间。
我听说这需要大量的布局重新设计。谁能指出我如何实现这一目标的正确方向?我希望新添加的侧边栏出现在页面的右侧。
看看我所拥有的,我假设我需要扩展主题后面显示的灰色字段的宽度,然后移动我的帖子所在的中心“板”以及保存小部件的左侧。然后,我需要设置编码,以便
我的问题是,我不知道从哪里开始执行此操作。有人能指出我正确的方向吗?
我是否正确地假设需要在 index.php 文件中进行此更改?
I have the screwdriver wordpress theme installed on my site (http://wordpress.org/extend/themes/screwdriver)
I made the necessary changes to my functions.php file, then created a sidebar-custom.php file, and now the new sidebar is showing up in my Wordpress account, but I was told that I now need to create space for the new sidebar in the theme layout.
I am told it takes a lot of layout redesign. Can anyone point me in the right direction on how to accomplish this? I want the newly-added sidebar to appear on the right side of page.
Looking at what I have, I'm assuming that I'll need to extend the width of gray field that shows in the back of my theme, then move the center "plate" where my posts reside, along with the "plates" on the left that hold the widgets. Then, I need to set the coding so that
My issue is, I don't know where to begin doing this. Can someone point me in the right direction?
Am I correct in assuming that this change will need to be made in the index.php file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,这可能取决于您注册侧边栏的方式,但是...
进入您的主题文件夹并找到放置它的最佳位置(也许在 header.php 的底部?)
刷新您的网站,找到新的 CSS 选择器侧边栏,并相应地修改 style.css - 您可能希望将其浮动到右侧并调整内容区域的大小。
我不熟悉螺丝刀主题,所以这可能是完全错误的。
Well it could depend on how you registered the sidebar, but...
Go into your theme folder and locate the best place to put it (perhaps at the bottom of header.php ?)
Refresh your site, find the CSS selector for the new sidebar, and modify style.css accordingly - you might want to float it to the right and resize the content area.
I'm not familiar with the Screwdriver theme so this may be totally wrong.