Enable a header for Sandbox (and Custom Headers for specific posts and pages)
-
I have searched and searched and searched for a way to add a header image to the theme “Sandbox” (version 1.7). All I want to do is add a header image that is the same length of the page, in any size I want (and if it’s too small it can be automatically re-sized, stretched and/or condensed to fit the page. I think that is called box-resizing). I know there’s a code for this. I also need to know where to insert the code in the header.php file (I know any code relating to the header goes there). I’ve searched for 6+ hours about this.
Once that is done, I need to set custom header images for different posts and pages. Let’s say if I write a post about a dragon, I want to use an image of a dragon for the header. And if I have a post about a chicken, I want to use an image of a chicken for that post. And let’s say I have a category page with 3 posts, I want the header code to call a random image from that category and display it as a header (or use the image from the first post in the category as a header). I know there’s a code for the “random header category” because another person posted in these forums about that, and I also know there’s a code for the custom header image, and said code I found here: https://jecadesigns.com/wordpress-custom-header-image-for-each-page/wordpress/ but it didn’t work for me and the post doesn’t say where to put the second part of the code (the second part of the code goes in the header.php, but where inside the file do i put it? Does it go after <head> ?) Every time I try and use it, I get a parse code error.
I also want to know five tiny things:
How do I change the font type and color in Sandbox,
How do I change the background color to black
And how on earth do I get the blog to display image thumbnails of featured images from posts in category lists, archive pages and on the main page? (like with the Columnist layout and the Oxygen layout on wordpress.com?)
I know I need “Featured Images” enabled for that, but Sandbox does not have Featured Images enabled. How do I enable Featured Images?And is there a code I can use to disable the sidebar for pages (like in the Oxygen and Columnist theme), and is there a code I can use to make it optional for a person reading the blog to disable the sidebar when reading a post? (in other words, is there a code for “turning off” the sidebar for posts only, not pages).
One last thing, is there a way I can “move” the content section (not the sidebar) closer to the right side of the page? Do I use the padding code for that? I have a feeling I can use the padding code to “move” it over.
As you can see, I am trying to make my blog have an emphasis on pictures and text. Sandbox’s wide content width and one sidebar is perfect for casting that emphasis, which is why I chose that layout for the blog’s building blocks (and it’s a theme that can be easily customized but in my case, it’s not so easy like I thought). I have a few more questions but before I ask those I want to get the layout built.
Please, help me! It is imperative that I get this site done. It will impact the future of my writing projects.
My blog uses WordPress 3.5.1 and was installed via Zacky Tools and it’s web host is biz.nf . Right now I am using biz.nf so I can create the layout of my blog and switch over to the WordPress-recommended blog hosts once the layout is created. I will post the CSS if need be.
Here is my blog URL in all of it’s unmodified sandbox glory: https://thesocietyondarun.co.nf/
- The topic ‘Enable a header for Sandbox (and Custom Headers for specific posts and pages)’ is closed to new replies.