• I’m trying to edit the “ThatSimple” theme so that the ‘main banner’ (the image at the top) links back to the home page.

    Here is the code from the theme editor for ‘page.php’:

    <div class="mainImage"><div class="grid_16">
    
        	<?php
    		$mainImage = get_option('ths_mImg_page');
    
    		?>
        	 <a href="http://quellman.info/blog/"><img src="<?php echo ($mainImage); ?>" alt="" /></a>
        </div>

    When I view the page source of the actual live page however, this is what I get:

    <div class="grid_16">
    	<div class="mainImage">
        	    	<img src="http://quellman.info/wptheme/qm/hp_banner.jpg" alt="" />
        </div>
    </div>

    The code…buh…disappears…? >.> Probably the last tweak I need to do to the theme to get it goin’ like I want…

Viewing 2 replies - 1 through 2 (of 2 total)
  • i can only guess that the system is not using page.php to display the page.
    if you look into single.php, for instance, it has the link html missing.

    <div class="container_16">
    <!-- begin: main navigation -->
    <div class="grid_16">
    	<div class="mainImage">
        	<?php
    		$mainImage = get_option('ths_mImg_posts');
    		?>
        	<img src="<?php echo ($mainImage); ?>" alt="" />
        </div>
    </div>

    in your actual source, look at the line just before ‘div class=”grid_16″‘ to get more clues

    Hey guys. Sorry this response is so late, but to answer your question Quell, you would need to change some code on three pages.

    page.php, single.php and index.php in the template folder for that_simple.

    on line 11 – change

    <img src="<?php echo ($mainImage); ?>" alt="" />

    that line to:

    <a href="<?php bloginfo('url'); ?>"><img src="<?php echo ($mainImage); ?>" alt="" /></a>

    That should make the link dynamic, just in case you want to move it somewhere else or what have you.

    If you have any other questions shoot over to our website and send us an email. Hope this helps.

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

The topic ‘ThatSimple Theme Tweaking’ is closed to new replies.