setting up author's pages
-
on the ‘frontpage’ i’d like to keep it and I’ll put widgets there. Twitter, gigs, youtubeplayer, musicplayer, stuffl like that. but on these: http://twowaysociety.nl/hidden/category/jaap/ (which is that category page I was talking about) I’d want those sidebars disappear… We’re almost there…
Yeah, unfortunately your categories page is going to follow the layout of your default theme setting. Pages can be adjusted. Categories cannot.
Soooo, possibly you could set your theme to use no sidebars. And then create a page for your homepage, and set it to three columns?
I could do that, but how am I going to show posts there? As I understood I can’t show posts on a pages.
hmmm… You see why I tried to set up a template? That went wrong because it was showing sidebars while I simply copied the theme’s “one column, no sidebar” template. If that WAS going to work (that is; without sidebars), I’d try out the following (although I don’t know how to use it yet)
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=5&cat=383&author_name=' . $page_author . '&paged=' .$paged);
?>Well.. Got a bit further thanks to you, but I’m still not there. Thank god it’s raining here, so I’m happy to stay indoors… Still loving the theme, don’t worry ’bout that 🙂
Wish I’d studied PHP-programming instead of music-management… lol
Haha… I’m in music also. Funny.
I have to run out for a bit. But I’ll check back in on this when I return.
Admin
If you want just the category pages to not show any sidebars (i.e. one-column layout), create a child theme first, and then create a file called
category.phpinside your child theme folder. Then, insert this code inside that file:<?php
global $graphene_settings;
$graphene_settings['column_mode'] = 'one-column';
include( get_template_directory() . '/category.php' );
?>I was just getting ready to ask your for your “two-cents”. Thanks!!
I’ll try it tomorrow (3 am here). will keep you guys updated!
Thanks!!!!
Setted up a child theme. Named the folder Graphene Child. Containing simple style.css and the category.php.
The style.css only has the following:
/*
Theme Name: Graphene Child
Theme URI:
Description: Child theme for the Graphene theme
Author: Manasse Visser
Author URI: http: //twowaysociety.com
Template: Graphene
Version: 0.1.0
*/
@import url("http://twowaysociety.nl/public_html/hidden/wp-content/themes/graphene/style.css");the category.php only has the PHP-code suggested in this thread. Now when I go to themes in dashboard I can see the child theme with the following message:
Broken Themes
The following themes are installed but incomplete. Themes must have a stylesheet and a template.
Name Description
Graphene Child The parent theme is missing. Please install the "Graphene" parent theme.The Graphene Theme IS installed and working just like it should (except for the category’s sidebars, but we’re trying to solve that, right?)
So I feel we (especially you guys) are getting close, but it’s no cigar, yet…
Suggestions on how to solve this??
Oh, and I’ve double checked if Graphene’s working or not (deleted all the files and re-installed the theme) and rechecked if I’ve put the Child-theme’s Folder in the proper folder. It’s in wp-content/themes/, so that’s ok, right???
Admin
This line:
Template: GrapheneThe name of the theme actually refers to the name of the folder the parent theme resides in, and therefore must be all lowercase (since the
graphenefolder is all lowercase):Template: grapheneHahaha. Ok that was easy, but look at it now… Must be something wrong in style.css
http://twowaysociety.nl/hidden/ Now it is just html…
- You must be logged in to reply to this topic.
