• Hi, i’m makeing my wordpress page with OnePress on my localhost, and when i have it all ready i’ll put it online.

    Where can i edit the footer-connect?, the black secction over the footer?. In foother.php i couldn’t find any reference to edite it, but when u call the footer there is it.

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the #content div and all content after.
     *
     * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
     *
     * @package OnePress
     */
    
    $hide_footer = false;
    $page_id = get_the_ID();
    
    if ( is_page() ){
        $hide_footer = get_post_meta( $page_id, '_hide_footer', true );
    }
    
    if ( onepress_is_wc_active() ) {
        if ( is_shop() ) {
            $page_id =  wc_get_page_id('shop');
            $hide_footer = get_post_meta( $page_id, '_hide_footer', true );
        }
    }
    
    if ( ! $hide_footer ) {
        ?>
        <footer id="colophon" class="site-footer" role="contentinfo">
            <?php
            /**
             * @since 2.0.0
             * @see onepress_footer_widgets
             * @see onepress_footer_connect
             */
    

    Sorry for my inexperience, and thanks in advance. Have a great day.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi,

    Here is the template of the footer connect section
    https://github.com/FameThemes/onepress/blob/master/inc/template-tags.php#L1853-L1889

    But you should use the action hook to remove the current template and add your custom template after, see the sample code.

    add_action( 'init', function() {
        remove_action( 'onepress_before_site_info', 'onepress_footer_connect', 25 );
        add_action( 'onepress_before_site_info', 'my_onepress_footer_connect', 25 );
    } );
    
    function my_onepress_footer_connect() {
    	// template code goes here
    }

    Regards.

Viewing 1 replies (of 1 total)

The topic ‘footer-connect’ is closed to new replies.