QuestionsHow to delete footer Ultimate Theme
John asked 2 years ago

Hello,
I have question. I have theme Ultimate and I try try try delete footer links “Powered by: WordPress” and “Theme by: Themehorse”.

I created child theme, I tried delete footer by using different codes but my action lost. I haven't idea.
I know that this footer is invisible because the footer link is hide in “container” i think… I am green in html etc. :).

Furthermore I know that I shouldn't delete footer in free version but I can legally delete or hide “Powered by: WordPress” link. I'm aware about too much “follow” links in my site and I can get banned by google… So please help me…

I add elements in my footer.php theme:

<?php
/**
* Displays the footer section of the theme.
*
* @package Theme Horse
* @subpackage Ultimate
* @since Ultimate 1.0
*/
?>
<?php if(!is_page_template( ‘page-templates/page-template-business.php' )){
echo ‘</div><!– .container –>';
} ?>
</div><!– #main –>
<?php
/**
* ultimate_after_main hook
*/
do_action( ‘ultimate_after_main' );
?>
<?php
/**
* ultimate_before_footer hook
*/
do_action( ‘ultimate_before_footer' );
?>
<footer id=”colophon” class=”clearfix”>
<?php
/**
* ultimate_footer hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* ultimate_footer_widget_area 5
* ultimate_footer_infoblog 10
* ultimate_footer_div_close 15
* ultimate_open_sitegenerator_div 20
* ultimate_socialnetworks 25
* ultimate_footer_info 30
* ultimate_close_sitegenerator_div 35
* ultimate_backtotop_html 40
*/
do_action( ‘ultimate_footer' );
?>
</footer>
<?php
/**
* ultimate_after_footer hook
*/
do_action( ‘ultimate_after_footer' );
?>
</div><!– .wrapper –>
<?php
/**
* ultimate_after hook
*/
do_action( ‘ultimate_after' );
?>
<?php wp_footer(); ?>
</body>
</html>

and my functions.php

<?php
/**
* Ultimate defining constants, adding files and WordPress core functionality.
*
* Defining some constants, loading all the required files and Adding some core functionality.
* @uses add_theme_support() To add support for post thumbnails and automatic feed links.
* @uses register_nav_menu() To add support for navigation menu.
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
*
* @package Theme Horse
* @subpackage Ultimate
* @since Ultimate 1.0
*/
add_action(‘after_setup_theme', ‘ultimate_setup');
/**
* This content width is based on the theme structure and style.
*/
function ultimate_setup() {
global $content_width;
if (!isset($content_width)) {
$content_width = 700;
}
}
add_action(‘ultimate_init', ‘ultimate_constants', 10);
/**
* This function defines the Ultimate theme constants
*
* @since 1.0
*/
function ultimate_constants() {
/** Define Directory Location Constants */
define(‘ULTIMATE_PARENT_DIR', get_template_directory());
define(‘ULTIMATE_CHILD_DIR', get_stylesheet_directory());
define(‘ULTIMATE_IMAGES_DIR', ULTIMATE_PARENT_DIR.'/images');
define(‘ULTIMATE_INC_DIR', ULTIMATE_PARENT_DIR.'/inc');
define(‘ULTIMATE_PARENT_CSS_DIR', ULTIMATE_PARENT_DIR.'/css');
define(‘ULTIMATE_ADMIN_DIR', ULTIMATE_INC_DIR.'/admin');
define(‘ULTIMATE_ADMIN_IMAGES_DIR', ULTIMATE_ADMIN_DIR.'/images');
define(‘ULTIMATE_ADMIN_JS_DIR', ULTIMATE_ADMIN_DIR.'/js');
define(‘ULTIMATE_ADMIN_CSS_DIR', ULTIMATE_ADMIN_DIR.'/css');
define(‘ULTIMATE_JS_DIR', ULTIMATE_PARENT_DIR.'/js');
define(‘ULTIMATE_CSS_DIR', ULTIMATE_PARENT_DIR.'/css');
define(‘ULTIMATE_FUNCTIONS_DIR', ULTIMATE_INC_DIR.'/functions');
define(‘ULTIMATE_SHORTCODES_DIR', ULTIMATE_INC_DIR.'/footer_info');
define(‘ULTIMATE_STRUCTURE_DIR', ULTIMATE_INC_DIR.'/structure');
if (!defined(‘ULTIMATE_LANGUAGES_DIR'))/** So we can define with a child theme */
{
define(‘ULTIMATE_LANGUAGES_DIR', ULTIMATE_PARENT_DIR.'/languages');
}
define(‘ULTIMATE_WIDGETS_DIR', ULTIMATE_INC_DIR.'/widgets');
/** Define URL Location Constants */
define(‘ULTIMATE_PARENT_URL', get_template_directory_uri());
define(‘ULTIMATE_CHILD_URL', get_stylesheet_directory_uri());
define(‘ULTIMATE_IMAGES_URL', ULTIMATE_PARENT_URL.'/images');
define(‘ULTIMATE_INC_URL', ULTIMATE_PARENT_URL.'/inc');
define(‘ULTIMATE_ADMIN_URL', ULTIMATE_INC_URL.'/admin');
define(‘ULTIMATE_ADMIN_JS_URL', ULTIMATE_ADMIN_URL.'/js');
define(‘ULTIMATE_JS_URL', ULTIMATE_PARENT_URL.'/js');
define(‘ULTIMATE_CSS_URL', ULTIMATE_PARENT_URL.'/css');
define(‘ULTIMATE_FUNCTIONS_URL', ULTIMATE_INC_URL.'/functions');
define(‘ULTIMATE_SHORTCODES_URL', ULTIMATE_INC_URL.'/footer_info');
define(‘ULTIMATE_STRUCTURE_URL', ULTIMATE_INC_URL.'/structure');
if (!defined(‘ULTIMATE_LANGUAGES_URL'))/** So we can predefine to child theme */
{
define(‘ULTIMATE_LANGUAGES_URL', ULTIMATE_PARENT_URL.'/languages');
}
define(‘ULTIMATE_WIDGETS_URL', ULTIMATE_INC_URL.'/widgets');
}
add_action(‘ultimate_init', ‘ultimate_load_files', 15);
/**
* Loading the included files.
*
* @since 1.0
*/
function ultimate_load_files() {
/**
* ultimate_add_files hook
*
* Adding other addtional files if needed.
*/
do_action(‘ultimate_add_files');
/** Load functions */
require_once (ULTIMATE_FUNCTIONS_DIR.'/i18n.php');
require_once (ULTIMATE_FUNCTIONS_DIR.'/custom-header.php');
require_once (ULTIMATE_FUNCTIONS_DIR.'/functions.php');
require_once (ULTIMATE_FUNCTIONS_DIR.'/customizer.php');
require_once (ULTIMATE_FUNCTIONS_DIR.'/custom-style.php');
require_once (ULTIMATE_ADMIN_DIR.'/ultimate-themedefaults-value.php');
require_once (ULTIMATE_ADMIN_DIR.'/ultimate-metaboxes.php');
/** Load Shortcodes */
require_once (ULTIMATE_SHORTCODES_DIR.'/ultimate-footer_info.php');
/** Load Structure */
require_once (ULTIMATE_STRUCTURE_DIR.'/header-extensions.php');
require_once (ULTIMATE_STRUCTURE_DIR.'/searchform-extensions.php');
require_once (ULTIMATE_STRUCTURE_DIR.'/sidebar-extensions.php');
require_once (ULTIMATE_STRUCTURE_DIR.'/footer-extensions.php');
require_once (ULTIMATE_STRUCTURE_DIR.'/content-extensions.php');
/** Load Widgets and Widgetized Area */
require_once (ULTIMATE_WIDGETS_DIR.'/ultimate_widgets.php');
}
add_action(‘ultimate_init', ‘ultimate_core_functionality', 20);
/**
* Adding the core functionality of WordPess.
*
* @since 1.0
*/
function ultimate_core_functionality() {
/**
* ultimate_add_functionality hook
*
* Adding other addtional functionality if needed.
*/
do_action(‘ultimate_add_functionality');
// 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' );
// This theme uses Featured Images (also known as post thumbnails) for per-post/per-page.
add_theme_support(‘post-thumbnails');
// This theme uses wp_nav_menu() in header menu location.
register_nav_menu(‘primary', __(‘Primary Menu', ‘ultimate'));
// Add Ultimate custom image sizes
add_image_size(‘featured-medium', 250, 215, true);// used to show blog post medium
add_image_size(‘slider', 978, 440, true);// used to show featured slider and blog post large
add_image_size(‘gallery', 475, 345, true);// used to show gallery and recent work
add_image_size(‘services', 460, 250, true);//used to show services on business layout

// Support for WooCommerce Product gallery
add_theme_support( ‘wc-product-gallery-zoom' );
add_theme_support( ‘wc-product-gallery-lightbox' );
add_theme_support( ‘wc-product-gallery-slider' );

/**
* This theme supports custom background color and image
*/
add_theme_support(‘custom-background');
// Adding excerpt option box for pages as well
add_post_type_support(‘page', ‘excerpt');
}
/**
* ultimate_init hook
*
* Hooking some functions of functions.php file to this action hook.
*/
do_action(‘ultimate_init');
add_action( ‘after_setup_theme', ‘ultimate_woocommerce_support' );
function ultimate_woocommerce_support() {
add_theme_support( ‘woocommerce' );
}
remove_action( ‘woocommerce_before_main_content', ‘woocommerce_output_content_wrapper', 10);

remove_action( ‘woocommerce_after_main_content', ‘woocommerce_output_content_wrapper_end', 10);

add_action(‘woocommerce_before_main_content', ‘ultimate_wrapper_start', 10);
add_action(‘woocommerce_after_main_content', ‘ultimate_wrapper_end', 10);
function ultimate_wrapper_start() { echo ‘<div id=”primary”> <div id=”content”>'; }

function ultimate_wrapper_end() { echo ‘</div></div>'; }
?>

And what I must to do?

1 Answers
Adam @ WPCrafter Staff answered 2 years ago

First off, it is perfectly legal to change any line of code in all WordPress themes and plugins because they are GPL licensed. You can google that to see what it means. So this means any footer in any theme, you can change. Even the Powered By WordPress part.

Some themes make this really hard, but here is a way to do it on any WordPress theme.

Attachments
Your Answer
6 + 3 =

Accepted file types: png, jpg, pdf

Add another file