Forum Replies Created

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

    (@tombrew123)

    Just a quick update, I’ve added in a contact page in the footer but the spacing is too close between ‘contact’ and ‘disclaimer’. How do i fix this?

    I tried adding in:

    /* space between disclaimer and contact */
    .site-info p a {
      margin-right: 30px;
    }

    But that didn’t do anything. Would you be able to briefly explain how the code you provided me with changed what I wanted? I understand the command like ‘float/margin/30px’ etc, but I presume it’s the ‘site info p a’ bit that moves the correct thing around?

    Hope that makes sense!

    Tom.

    Thread Starter tombrew123

    (@tombrew123)

    Hi,

    That code worked an absolute treat so big thanks for that! The reason I have the footer.php is because I edited the original to include my copyright and disclaimer page. I thought when the parent theme updates I will lose these changes?

    Thanks,

    Tom.

    Thread Starter tombrew123

    (@tombrew123)

    RESOLVED!

    Apologies for all the comments! Basically, the child theme’s footer php file was called ‘footer-child-1.php’. I renamed it to footer.php and it solved my problem! Think wordpress didn’t like the file name!

    So all sorted, thanks again for all the help Michael!

    Thread Starter tombrew123

    (@tombrew123)

    Okay, I just made the same edit in the parent theme to double check my coding was correct and it is. This must mean that my child theme is not linking my footer.php file to the child theme?

    So how do I get the child theme to use the customised child footer.php that I have created?

    I have uploaded it via file zilla like I did with the child theme so I’m not too sure if the child theme is looking for the updated file?

    Again, any help is hugely appreciated!

    Thread Starter tombrew123

    (@tombrew123)

    I’ve cleared the cache both on my web browser and in the ‘wp super cache’ itself and still no joy. Is my coding correct? Or am I missing something really obvious?

    Thread Starter tombrew123

    (@tombrew123)

    Hi Michael,

    Thanks for the quick reply. I wanted to get rid of ‘powered by wordpress’ and to add in a link to my disclaimer. Here is my edited version of the footer.php. I have made the changes on line 50-51 I think. I deleted the following:

    <span class="site-title"><a>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
    				<a>"><?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?></a>

    And replaced it with:

    <p>&copy2016 <a href="http://tombretravel.com">tombretravel</a></p>
    <a href="http://tombretravel.com/disclaimer/">Disclaimer</a>

    So in full, this is what my footer.php file looks like:

    <?php
    /**
     * The template for displaying the footer
     *
     * Contains the closing of the #content div and all content after
     *
     * @package WordPress
     * @subpackage Twenty_Sixteen
     * @since Twenty Sixteen 1.0
     */
    ?>
    
    		</div><!-- .site-content -->
    
    		<footer id="colophon" class="site-footer" role="contentinfo">
    			<?php if ( has_nav_menu( 'primary' ) ) : ?>
    				<nav class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
    					<?php
    						wp_nav_menu( array(
    							'theme_location' => 'primary',
    							'menu_class'     => 'primary-menu',
    						 ) );
    					?>
    				</nav><!-- .main-navigation -->
    			<?php endif; ?>
    
    			<?php if ( has_nav_menu( 'social' ) ) : ?>
    				<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
    					<?php
    						wp_nav_menu( array(
    							'theme_location' => 'social',
    							'menu_class'     => 'social-links-menu',
    							'depth'          => 1,
    							'link_before'    => '<span class="screen-reader-text">',
    							'link_after'     => '</span>',
    						) );
    					?>
    				</nav><!-- .social-navigation -->
    			<?php endif; ?>
    
    			<div class="site-info">
    				<?php
    					/**
    					 * Fires before the twentysixteen footer text for footer customization.
    					 *
    					 * @since Twenty Sixteen 1.0
    					 */
    					do_action( 'twentysixteen_credits' );
    				?>
    <p>&copy2016 <a href="http://tombretravel.com">tombretravel</a></p>
    <a href="http://tombretravel.com/disclaimer/">Disclaimer</a>
    
    			</div><!-- .site-info -->
    		</footer><!-- .site-footer -->
    	</div><!-- .site-inner -->
    </div><!-- .site -->
    
    <?php wp_footer(); ?>
    </body>
    </html>

    Thanks for your help!

    Thread Starter tombrew123

    (@tombrew123)

    Hi Tanveer,

    Thanks for the quick response! I’ve now run into a bit of an issue which I’m hoping is easily fixable but I’m not sure!

    I managed to create the twenty sixteen child theme successfully. I then tried to follow what was said on this post that you linked:
    https://wordpress.org/support/topic/child-theme-footer?replies=23

    However, since I updated the code from the footer thread, whenever I load my website or even try to get onto the wordpress dashboard I have a completely blank white screen.

    I have since input the original code from the wordpress child theme codex page. However I still have no idea how to put the footer on my home page.

    Sorry to be a pain, is there any chance you could help a nooby out?

    Thanks,
    Tom.

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