Changing the footer info
-
I would like to change the info in the Ample Theme footer.
How would I go about doing that?
I tried finding the function responsible for that in the parent functions.php but failed. The footer only contains the following code, which is not mentioned in the parent functions.php:
<div class=”copyright-info”>
<?php do_action( ‘ample_footer_copyright’ ); ?>
</div>
The site is breezeguard.com
-
Hi Cadin
What do you want to have and NOT to have in your footer?
cheers
TRWell, I would like to change this:
Powered by WordPress. Theme: Ample by ThemeGrill.
To Based on Ample Theme. Or something to this regard.
Thank youHi Cadin,
Choice No. 1 is to talk to Theme Author first.
Try this forum to solve it.
I hope that it will be helpful
It is Midnight here, so give it try and I will take a look tomorrow.
Let me know
Good night for now.
Cheers
TRThe forum has a discussion regarding that, but I am not too familiar with php in order for me to write the code. I will try asking the author about that. I probably will want to add additional info into the footer as well.
Thank you for tying to help
@cadin03, You could always just change “<?php do_action( ‘ample_footer_copyright’ ); ?>” to whatever you want it to be.
Toby,
Thank you for responding. I am not familiar with writing php. I understand that you could add a function that does the action to the child theme, but I am not sure what is the correct way of doing that?This is the code from parent functions.php.
<?php
/**
* Ample functions related to defining constants, adding files and WordPress core functionality.
*
* @package ThemeGrill
* @subpackage Ample
* @since Ample 0.1
*/add_action( ‘after_setup_theme’, ‘ample_setup’ );
if ( ! function_exists( ‘ample_setup’ ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
*/
function ample_setup() {
global $content_width;
/**
* Set the content width based on the theme’s design and stylesheet.
*/
if ( ! isset( $content_width ) )
$content_width = 710; /* pixels *//*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
*/
load_theme_textdomain( ‘ample’, get_template_directory() . ‘/languages’ );// Add default posts and comments RSS feed links to head.
add_theme_support( ‘automatic-feed-links’ );/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( ‘title-tag’ );//Enable support for Post Thumbnails on posts and pages.
add_theme_support( ‘post-thumbnails’ );// Cropping the images to different sizes to be used in the theme
add_image_size( ‘ample-featured-blog-large’, 710, 300, true );
add_image_size( ‘ample-featured-blog-small’, 230, 230, true );
add_image_size( ‘ample-portfolio-image’, 330, 330, true );// Registering navigation menus.
register_nav_menus( array(
‘primary’ => __( ‘Primary Menu’, ‘ample’ ),
‘footer’ => __( ‘Footer Menu’, ‘ample’ ),
) );/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( ‘html5’, array(
‘search-form’, ‘comment-form’, ‘comment-list’, ‘gallery’, ‘caption’,
) );// Set up the WordPress core custom background feature.
add_theme_support( ‘custom-background’, apply_filters( ‘ample_custom_background_args’, array(
‘default-color’ => ‘ffffff’,
‘default-image’ => ”,
) ) );// Adding excerpt option box for pages as well
add_post_type_support( ‘page’, ‘excerpt’ );
}
endif; // ample_setup/**
* Register widget area.
*
*/
require get_template_directory() . ‘/inc/widgets/widgets.php’;/**
* Enqueue scripts and styles.
*/
require get_template_directory() . ‘/inc/functions.php’;/**
* Functions related to header.
*/
require get_template_directory() . ‘/inc/header-functions.php’;/**
* Implement the Custom Header feature.
*/
require get_template_directory() . ‘/inc/custom-header.php’;/**
* Add meta Box
*/
require get_template_directory() . ‘/inc/admin/meta-boxes.php’;/**
* Add Customizer
*/
require_once( get_template_directory() . ‘/inc/customizer.php’ );/**
* Adding Admin Menu for theme options
*/
add_action( ‘admin_menu’, ‘ample_theme_options_menu’ );function ample_theme_options_menu() {
add_theme_page( ‘Theme Options’, ‘Theme Options’, ‘manage_options’, ‘ample-theme-options’, ‘ample_theme_options’ );
}
function ample_theme_options() {if ( !current_user_can( ‘manage_options’ ) ) {
wp_die( __( ‘You do not have sufficient permissions to access this page.’, ‘ample’ ) );
} ?><h1 class=”ample-theme-options”><?php _e( ‘Theme Options’, ‘ample’ ); ?></h1>
<?php
printf( __(‘<p style=”font-size: 16px; max-width: 800px”;>As our themes are hosted on WordPress repository, we need to follow the WordPress theme guidelines and as per the new guiedlines we have migrated all our Theme Options to Customizer.</p><p style=”font-size: 16px; max-width: 800px”;>We too think this is a better move in the long run. All the options are unchanged, it is just that they are moved to customizer. So, please use this link to customize your site. If you have any issues then do let us know via our Contact form</p>’, ‘ample’),
esc_url(admin_url( ‘customize.php’ ) ),
esc_url(‘https://themegrill.com/contact/’)
);
}@cadin03 – My point is that you don’t need to write a function or do anything complex. You can just replace what’s there in footer.php with whatever text you’d like to display.
I am assuming you are talking about placing a text into the footer. Because I am using an existing theme, when the update happen, does the info get overwritten?
I will enter this conversation.
Yes when you update it will be overwritten. BUT
THAT IS WHY, you should create child theme, copy footer there and do the tweaking in the childtheme.
Cheers
TRSo, the footer somehow will be supplemented with the child theme footer, like the style sheet? How does one link them?
Ample have their own support forum… this has been covered somewhere in a post, thats what taught me how to do it!
I use my footer widgets to include what I DO want to see and I have hidden the original area all together. Let me know if you still need help and ill dig out the custom CSS for you!
Hi I have the same problem – trying to dlete the text and I am not using a child them – I’m new to WordPress
If I make my own footer will it overwrite the powered by WordPress etc?
Thanks
Temoprary site:
\
https://a9b.b58.myftpupload.com/Why use a Child Theme? If you modify a theme directly and it is updated, then your modifications may be lost. By using a child theme you will ensure that your modifications are preserved.
So, create your child theme (the only required child theme file is style.css, but functions.php is necessary to enqueue styles correctly) or download it (take a look at the theme documentations).
Copy footer.php file from the parent theme (ample) into child theme (ample-child). Activate child theme.
Find this (footer.php, line 16):
<div class="footer-bottom clearfix"> <div class="copyright-info"> <?php do_action( 'ample_footer_copyright' ); ?> </div>
Replace with:
<div class="footer-bottom clearfix"> <div class="copyright-info"> <p></a>Copyright ? <?php echo date("Y"); echo " "; ?></a> <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a> All Rights Reserved.</p> </div>
Or type your text (whatever):
<div class="footer-bottom clearfix"> <div class="copyright-info"> <p>Copyright ? Your Website. All Rights Reserved.</p> </div>
That’s it. Enjoy!
Thank you so much!!! You were a great help.
I really appreciate it
- The topic ‘Changing the footer info’ is closed to new replies.