• Resolved bgva2005

    (@bgva2005)


    Hi everyone, I am using Omega theme and I have my own omega child theme “Active”.
    Inside my Omega-child theme I have 2 files:

    style.css
    functions.php

    inside my functions.php I have this code:

    <?php
    function theme_enqueue_styles() {
    
        $parent_style = 'parent-style';
    
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    	wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/rtl.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style )
        );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    
    remove_filter( 'omega_footer_insert', 'omega_default_footer_insert' );
    
    function omegaChild_footer_insert( $settings ) {
    
    	return '<p class="copyright">' . __( 'Copyright 8 ? ', 'omega' )  . '.</p>' . "\n\n" ;		
    
    }
    add_filter( 'omega_footer_insert', 'omegaChild_footer_insert' );
    
    ?>

    But the system is not working with the ‘omegaChild_footer_insert’ it is working with the hooks.php file that is inside this path: wp-content\themes\omega\lib\functions

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bgva2005

    (@bgva2005)

    What I did is to update the file : hooks.php into omega theme to:

    /**
     * default footer insert filter
     */
    function omega_default_footer_insert( $settings ) {
    
    	/* If there is a child theme active, use [child-link] shortcode to the $footer_insert. */
    	if ( !is_child_theme() ) {
    		return '<p class="copyright">' . __( 'Copyright © ', 'omega' ) . date_i18n( 'Y' ) . ' ' . get_bloginfo( 'name' ) . '.</p>' . "\n\n" . '<p class="credit">' . omega_get_theme_name() . __( ' WordPress Theme by ', 'omega' ) . omega_get_author_uri() . '</p>';
    	} else {
    		/**
    		return '<p class="copyright">' . __( 'Copyright © ', 'omega' ) . date_i18n( 'Y' ) . ' ' . get_bloginfo( 'name' ) . '.</p>' . "\n\n" . '<p class="credit">' . omega_get_child_theme_link() . __( ' WordPress Theme by ', 'omega' ) . omega_get_author_uri() . '</p>';
    		*/
    		return '<p class="copyright">  <img src="Archivos/Imagenes/F_01_GraficoFooter.png" alt="" > </p>' ;
    	}
    
    }

    The site is: apps.quito.gob.ec.

    Do someone know how to do this change with the child theme?

    Thread Starter bgva2005

    (@bgva2005)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add a background image to my footer Omega child theme.’ is closed to new replies.