• julesjunction

    (@julesjunction)


    Hi,

    I am using the Attitude theme. I need to change and add quite a lot to the footer. Development website is here.

    I have seen the other threads which show how to change the one line copyright text in the Attitude theme footer but I have a large amount of legal wording that needs to be added. I have the html in a text widget at the moment, I just don’t know where to put it in this theme at the bottom of the page.

    Can you advise how to add additional lines to the Attitude footer, the bit where the Copyright text is?

    https://www.ads-software.com/support/theme/attitude

    Rgds,
    Jules

Viewing 10 replies - 1 through 10 (of 10 total)
  • WPyogi

    (@wpyogi)

    Do you have a child theme set up? That would be the first step so that your changes are not lost when the theme is updated –

    https://codex.www.ads-software.com/Child_Themes

    Thread Starter julesjunction

    (@julesjunction)

    Hi @wpyogi,

    thank you for your response.

    So far I haven’t needed a child theme with the Attitude theme because I have used the ‘Custom CSS’ box that the theme provides. I haven’t made any changes to the theme files, all of my CSS changes are in the ‘Custom CSS’ box.

    However, yes I will need to create a child theme for this copyright footer change and I know how to create the child theme.

    What I don’t know how to do is how to add the additional text to the copyright footer and where to add it to?

    Thread Starter julesjunction

    (@julesjunction)

    Hi @wpyogi,

    I’ve just created a child theme, put the code in the functions.php file and activated the theme.

    That changes the copyright line fine but how do I add additional lines to the footer?

    I need to add something like this in after the copyright line…

    <p style="text-align: center;"><strong><span style="color: #f9551e;">Your property may be repossessed if you do not keep up repayments on your mortgage.</span></strong></p>
    <p style="text-align: center;">For mortgages we can be paid by commission or a fee usually 0.5% of the loan amount.</p>
    <hr />
    <div id="sfs-footer-top" style="background-color: #ffffff; color: #666666;">
    
    <img class="size-full wp-image-216 alignleft" alt="NHS247logo" src="https://jgdigital.co.uk/solentfs/wp-content/uploads/NHS247logo.jpg" width="70" height="51" /><img class="wp-image-215 alignleft" alt="ifa-logo" src="https://jgdigital.co.uk/solentfs/wp-content/uploads/ifa-logo-150x150.jpg" width="90" height="90" />Solent Financial Services Ltd is an appointed representative of Sesame Ltd which is authorised and regulated by the Financial Conduct Authority. ?Sesame is entered on the FCA register www.fca.org.uk/registerThe FCA does not regulate some forms of Buy to Let mortgages and Inheritance Tax Planning.
    <p style="text-align: justify;"><small>This website is intended for investors over 18 years of age who are resident in the UK only. The website and the information contained therein should not be regarded as an offer or solicitation to conduct investment business in any jurisdiction other than the UK. These pages provide generic information about various aspects of financial services advice that we provide as well as possible areas of clients' financial planning needs. We hope they are helpful to you but they do not, on their own, add up to proper investment advice and we cannot take responsibility for anything you do in reliance on them without further discussion with us. Please do not make a decision based upon the information contained within these pages alone. They are not detailed or comprehensive enough to enable you to make an informed decision which is tailored to your circumstances and needs. Please contact us now for tailored advice.</small></p>
    
    </div>
    <div id="sfs-footer" style="background-color: #0a5a7d; color: #ffffff;">All Rights Reserved Solent Financial Services Ltd 2013
    Registered office: Dibles House, Dibles Road, Warsash, Southampton, Hants. SO31 9JL.
    Registered in England No 6943864</div>

    Hi – can you post your footer.php file? I think you’ll want to add a new div below where that copyright section is output.

    Also, you may want to use External CSS for that section of text above – just a bit better coding practice and easier to maintain. You can easily add it to your new child style.css file.

    Thread Starter julesjunction

    (@julesjunction)

    This is the footer.php for the attitude theme, is that what you mean?

    <?php
    /**
     * Displays the footer section of the theme.
     *
     * @package 		Theme Horse
     * @subpackage 	Attitude
     * @since 			Attitude 1.0
     */
    ?>
    	   </div><!-- #main -->
    
    	   <?php
    	      /**
    	       * attitude_after_main hook
    	       */
    	      do_action( 'attitude_after_main' );
    	   ?>
    
    	   <?php
    	   	/**
    	   	 * attitude_before_footer hook
    	   	 */
    	   	do_action( 'attitude_before_footer' );
    	   ?>	
    
    	   <footer id="colophon" class="clearfix">
    			<?php
    		      /**
    		       * attitude_footer hook
    				 *
    				 * HOOKED_FUNCTION_NAME PRIORITY
    				 *
    				 * attitude_footer_widget_area 10
    				 * attitude_open_sitegenerator_div 20
    				 * attitude_socialnetworks 25
    				 * attitude_footer_info 30
    				 * attitude_close_sitegenerator_div 35
    				 * attitude_backtotop_html 40
    		       */
    		      do_action( 'attitude_footer' );
    		   ?>
    		</footer>
    
    		<?php
    	   	/**
    	   	 * attitude_after_footer hook
    	   	 */
    	   	do_action( 'attitude_after_footer' );
    	   ?>	
    
    	</div><!-- .wrapper -->
    
    	<?php
    		/**
    		 * attitude_after hook
    		 */
    		do_action( 'attitude_after' );
    	?> 
    
    <?php wp_footer(); ?>
    
    </body>
    </html>
    Thread Starter julesjunction

    (@julesjunction)

    This is in my child theme functions.php file:

    <?php
    
    // Remove old copyright text
    add_action( 'init' , 'sfs_remove_copy' , 15 );
    function sfs_remove_copy() {
            remove_action( 'attitude_footer', 'attitude_footer_info', 30 );
    }
    
    // Add my own copyright text
    add_action( 'attitude_footer' , 'sfs_footer_info' , 30 );
    function sfs_footer_info() {
       $output = '<div class="copyright">'.'Copyright ? [the-year] [site-link] Powered by: SUPER MARTIANS FROM MARS! '.'</div><!-- .copyright -->';
       echo do_shortcode( $output );
    }

    Okay, sorry it took me a while and I’m not at a computer I can easily test this one right now – but see if this works:

    Right after this (in the functions.php file):

    <!-- .copyright -->

    Add:

    <div id="footer-info">
    PUT YOUR CONTENT IN HERE
    </div> <!-- #footer-info -->

    We’ll probably need to add some CSS to make that look right, but let’s see where that gets to.

    Thread Starter julesjunction

    (@julesjunction)

    Oh wow that’s beginning to work, thank you so much ??

    I haven’t added all the content yet because I wanted to check it worked first. I’ve made a start here

    Cool – that looks great, indeed :)!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to edit footer’ is closed to new replies.