• Resolved annatora

    (@annatora)


    Hi!

    -I have made a WP site, locally on my mac, using MAMP.
    -Now I have uploaded the site to the hosting account, which is at One.com.
    -Everything is working fine, exept the Welcome.php file, which is brought in to the Header.php using this code.

    <?php
    	if ( is_front_page() && !is_paged() ) :
    	get_template_part( 'velkommen' ) ;
    	endif;
    	?>

    Does anyone know what could be wrong? This welcome.php has images in it, which also has a mouseover effect. Here is an example of the code for one of the images.

    <div id="innholdindex1">
    	<a href="<?php bloginfo('url');?>/wp-content/themes/childoftwentytwelve/images//kokkenimage.jpg"><img src="<?php bloginfo('url');?>/wp-content/themes/childoftwentytwelve/images//RuneLoyning-191-Halo.jpg" onmouseover="this.src='<?php bloginfo('url');?>/wp-content/themes/childoftwentytwelve/images//kokkenimage.jpg'" onmouseout="this.src='<?php bloginfo('url');?>/wp-content/themes/childoftwentytwelve/images//RuneLoyning-191-Halo.jpg'"/></a>
    
    </div>

    Here is the URL for the site: https://rune.loeyning.no/
    This file is supposed to show between the logo, and the menu. This is for my exam, so any suggestions will be much appreciated!!:)

Viewing 2 replies - 1 through 2 (of 2 total)
  • get_template_part( 'velkommen' ) ; is calling a file with the name velkommen.php – not Welcome.php

    Thread Starter annatora

    (@annatora)

    No, it is actually saved as velkommen.php. I have also checked the php files after beeing uploaded, and everything is there…

    Why can it be that it works locally and not remote, when everything looks the same?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lost a page when uploading WP to Hosting Service’ is closed to new replies.