mpm
Forum Replies Created
-
Forum: Requests and Feedback
In reply to: A “learner theme” for beginners?Is it here yet?
Forum: Fixing WordPress
In reply to: Styling Tag Cloud WidgetHow did you guys go fixing this issue?
Forum: Themes and Templates
In reply to: Tag cloud not wrapping text to conform to sidebar width!I’m having trouble with this as well.
Any pointers to the relevant topic with the solution would be received with much gratitude!
Forum: Fixing WordPress
In reply to: How to display a page outside bloghttps://www.corvidworks.com/articles/wordpress-content-on-other-pages
And that resolves this issue!
Forum: Fixing WordPress
In reply to: How to display a page outside blogForum: Themes and Templates
In reply to: Static Front Page BlogI have my WP in a seperate directory (not root).
I have a specific Page from my WP that I wish to display (comments and all) in my sites index page at root. (ie. outside the wp installation).
How do I achieve this?
Forum: Themes and Templates
In reply to: Charity partnership needs some free WordPress help!If you’re okay with using a free template – why do you need a designer?
In most cases changing header images is a very simple process.
Forum: Themes and Templates
In reply to: The Morning After: A magazine-style theme for WordPressIs it widgetised yet?
If you’ve changed the file name check the beginning of header-img.php in the images folder.
Also, check header.php as sometimes the header css is stored here.
Forum: Themes and Templates
In reply to: how to get 2 sidebars side by side?Thanks heaps guys. That worked a treat.
Forum: Themes and Templates
In reply to: how to get 2 sidebars side by side?I want
CONTENT SIDEBAR SIDEBAR
BUT I GET
CONTENT SIDEBAR
………………………………SIDEBARIf I add something to the 1st sidebar (like a widget) that changes the sidebar height the 2nd sidebar drops down with it.
Got there in the long run. Thanks anyway.
Okay, so I can make some changes through header-img.php but I’m flying blind and can’t find any info on editing this file.
Where do I change the position of the new image and what exactly do those numbers in the rounded corners array mean?
<?php $img = 'kubrickheader.jpg'; // If we don't have image processing support, redirect. if ( ! function_exists('imagecreatefromjpeg') ) die(header("Location: kubrickheader.jpg")); // Assign and validate the color values $default = false; $vars = array('upper'=>array('r1', 'g1', 'b1'), 'lower'=>array('r2', 'g2', 'b2')); foreach ( $vars as $var => $subvars ) { if ( isset($_GET[$var]) ) { foreach ( $subvars as $index => $subvar ) { $length = strlen($_GET[$var]) / 3; $v = substr($_GET[$var], $index * $length, $length); if ( $length == 1 ) $v = '' . $v . $v; $$subvar = hexdec( $v ); if ( $$subvar < 0 || $$subvar > 255 ) $default = true; } } else { $default = true; } } if ( $default ) list ( $r1, $g1, $b1, $r2, $g2, $b2 ) = array ( 105, 174, 231, 65, 128, 182 ); // Create the image $im = imagecreatefromjpeg($img); // Get the background color, define the rectangle height $white = imagecolorat( $im, 15, 15 ); $h = 182; // Define the boundaries of the rounded edges ( y => array ( x1, x2 ) ) $corners = array( 0 => array ( 25, 734 ), 1 => array ( 23, 736 ), 2 => array ( 22, 737 ), 3 => array ( 21, 738 ), 4 => array ( 21, 738 ), 177 => array ( 21, 738 ), 178 => array ( 21, 738 ), 179 => array ( 22, 737 ), 180 => array ( 23, 736 ), 181 => array ( 25, 734 ), ); // Blank out the blue thing for ( $i = 0; $i < $h; $i++ ) { $x1 = 19; $x2 = 740; imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white ); } // Draw a new color thing for ( $i = 0; $i < $h; $i++ ) { $x1 = 20; $x2 = 739; $r = ( $r2 - $r1 != 0 ) ? $r1 + ( $r2 - $r1 ) * ( $i / $h ) : $r1; $g = ( $g2 - $g1 != 0 ) ? $g1 + ( $g2 - $g1 ) * ( $i / $h ) : $g1; $b = ( $b2 - $b1 != 0 ) ? $b1 + ( $b2 - $b1 ) * ( $i / $h ) : $b1; $color = imagecolorallocate( $im, $r, $g, $b ); if ( array_key_exists($i, $corners) ) { imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white ); list ( $x1, $x2 ) = $corners[$i]; } imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $color ); } //die; header("Content-Type: image/jpeg"); imagejpeg($im, '', 92); imagedestroy($im); ?>
This is what I’ve ended up with so far!
This is the image created by the header color creator.
https://web.aanet.com.au/mpm/header-img.jpg
As you can now see it doesn’t match the kubrickheader.jpg underneath.
I would like to know what to change in either functions.php or header-img.php to make it match.
I don’t think I need to? I don’t think that would help.
I only want to know how to adjust the image size that kubricks header color picker creates. It doesn’t line up with my new header (which is just the same old blue kubrick header but with different dimensions).