Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter gordtep

    (@gordtep)

    ?

    Thread Starter gordtep

    (@gordtep)

    Do I need to use the “overflow: hidden” command somehow?

    Thread Starter gordtep

    (@gordtep)

    I’m realizing what I should be asking for is how to crop the image on the right side based on the browser window/resolution, so it will extend further if I open… hope this is making sense.

    Thread Starter gordtep

    (@gordtep)

    For what it’s worth, here’s the style.css file

    [code moderated]

    Thread Starter gordtep

    (@gordtep)

    I sincerely do appreciate all your help… it’s not perfect, as the header image is shifted to the right a faction of an inch for some reason and the re-size is different– the original resizing was just cutting off the a portion of the right side of the image based on the size of the window (which was how i wanted it), now it resizes the entire thing, but it’s ok. I’m not sure how to adjust that, I think it had something to do with the height 128? Thanks though.

    here’s what’s in the functions file:

    <?php
    /**
     * @package WordPress
     * @subpackage Homywhite_Theme
     */
    
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));
    
    // Get the random image url in the given relative directory path
    function get_random_imgurl_in_dir($rel_img_dir)
    {
    	$directory = get_template_directory() . "/". $rel_img_dir;
    	$dir_url = get_bloginfo('template_directory') . "/". $rel_img_dir;
    
    	if (@is_dir($directory))
    	{
    		$img_array = array();
    		$directory_handle = @opendir($directory);
    		while ( false !== ($filename = @readdir($directory_handle)) )
    		{
    			// Filters out some of the unwanted directory entries.
    			if ($filename != "." && $filename != "..")
    			{
    				// Ficture file, adds to the array stroring the file name
    				if (@is_file($directory."/".$filename))
    				{
    					$file_extension = strrchr($filename, ".");
    					if (".jpg" == $file_extension || ".gif" == $file_extension)
    						$img_array[] = $filename;
    				}
    			}
    		}
    
    		@closedir($directory_handle);
    
    		$array_count = @count($img_array);
    		$random_num = rand(1, $array_count);
    
    		$rand_img_url = $dir_url . "/" . $img_array[$random_num-1];
    	}
    
    	echo $rand_img_url;
    }
    Thread Starter gordtep

    (@gordtep)

    I’m still not getting it– it’s some bizarrely complicated CSS thing that I can’t seem to figure out… you’ll see on gordtep.com it’s an utter mess… i currently have the hyperlinked image all out of whack on top and the image I can’t get to hyperlink beneath it looking the way i want it to… what a mess

    Thread Starter gordtep

    (@gordtep)

    Close, but not all the way there… this pushes the body of the webpage all the way to the left and doesn’t allow the header to center/resize according to browser window… I’m working on https://www.gordtep.com — just can’t seem to get the header image to stay the way it’s supposed to be and have it appear as a hyperlink at the same time… every time i get it to be a link, the rest of the page is thrown off entirely

Viewing 7 replies - 1 through 7 (of 7 total)