• Resolved Mark

    (@markyork)


    The site I am working on is here.

    I want to customize the text that the theme that I am using has put in the footer. I am using a child of the theme. I opened the theme’s footer.php file, and I see your instructions to “add the footer_text() template tag to your footer.php theme template where you want the text to display”. But looking at my theme’s footer.php file, I don’t see exactly where to put that line. I’m sure it doesn’t just go anywhere in that file.

    Here is the code in my theme’s footer.php file:

    <?php
    /**
    * The template for displaying the footer
     *
     * @package WordPress
     * @subpackage sgwindow
     * @since SG Window 1.0.0
     */
    ?>
    		</div> <!-- .main-area -->
    		<?php get_sidebar('before-footer'); ?>
    			<?php if ( '1' == sgwindow_get_theme_mod( 'is_show_footer_menu') ) : ?>
    				<div id="footer-navigation" class="nav-container">
    					<nav id="menu-4" class="horisontal-navigation" role="navigation">
    						<span class="toggle"><span class="menu-toggle"></span></span>
    						<?php wp_nav_menu( array( 'theme_location' => 'footer', 'menu_class' => 'nav-horizontal' ) ); ?>
    					</nav><!-- #menu-4 .horisontal-navigation -->
    					<div class="clear"></div>
    				</div><!-- #footer-navigation .nav-container -->
    			<?php endif;
    			if ( ( ! is_front_page() || '1' == sgwindow_get_theme_mod( 'is_home_footer' )) && ! is_page_template( 'page-templates/no-content-footer.php' ) )
    				get_sidebar('footer');
    			 ?>
    		<footer id="colophon" class="site-footer">
    			<?php do_action('sgwindow_site_info'); ?>
    		</footer><!-- #colophon -->
    	</div><!-- #page -->
    	<div class="background-fixed"></div>
    	<div class="hide-screen-fixed"></div>
    	<?php wp_footer(); ?>
    </body>
    </html>

    https://www.ads-software.com/plugins/footer-text/

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    You basically can put it anywhere you like; just put it where you want the text to display. Here’s an example.

    However, given your theme, it might be more conveniant to add this code to functions.php, a custom plugin, or code snippet:

    add_action( 'sgwindow_site_info', 'footer_text' );

Viewing 1 replies (of 1 total)
  • The topic ‘Don't understand how to implement this plugin’ is closed to new replies.