rybarnes
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Displaying Blog Posts and Page content on a single pageI’m not the best PHP user. I tried to modify the code you gave me, but failed. How can I use the code to display a single pages content, and the blog posts? I’m looking to have the blog content appear next to the currently loaded page.
Forum: Themes and Templates
In reply to: Displaying Blog and Pages in 2 columnsesmi, thanks for the link. Looks like the right idea, but I have no idea how exactly to pull it off…I need a bit more help!
Forum: Themes and Templates
In reply to: Displaying Blog and Pages in 2 columnsSorry, I mean displaying the blog posts in the right column, and the current pages content on the left.
Forum: Plugins
In reply to: Changing Header ColorsJust looking for a bit more info. I can’t seem to get this figured out for the life of me…
Forum: Plugins
In reply to: Changing Header Colorsif I echo $color_header, a single color will appear. If I return $color_header, I got nothing. I think I’m confused as to how to return and place the variable into the theme. Any help?
Forum: Plugins
In reply to: Changing Header ColorsThose are $ signs (dollar signs.)
Ah, that makes sense, thanks! But out of curiosity, why wouldn’t the header be green right now?
Forum: Plugins
In reply to: Changing Header ColorsYeah, I accidentally posted the old version..I’ve cleaned up the semi-colons, and incremental addition which WordPress hated.
<?php $color = 1; $color_header; function color_rotator($color, $color_header) { if ($color==1) { color_header=="pink"; color==color+1; } if ($color==2) { color_header=="blue"; color==color+1; } if ($color==3) { color_header=="yellow"; color==color+1; } if ($color==4) { color_header=="green_blue"; color==color+1; } if ($color==5) { color_header=="green"; color==color+1; } if ($color==6) { color==1; } return $color_header; }
This code is in functions.php and called in index.php and runs with zero errors, but just does not do anything at all. There is no background color on the headers. I am no PHP ace, as every time I use PHP I get unexplainable errors, so any advice is appreciated.