• I forgot how I changed the footer on my site. Its not under menues, nor in footer.php. The theme editor or site editor doesn’t help either. Any help is greatly appreciated.

    Many thanks in advance,

    Frank

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator threadi

    (@threadi)

    Which part of the footer do you want to change exactly? everything that is currently visible is defined in the footer.php of the theme. You seem to have made individual adjustments in this file.

    Thread Starter Frank Spade

    (@spade)

    Hi Threadi,

    thanks for your response. I checked the footer.php, but it didn’t contain my footer:
    »Patientensorge            Am Lebensende Leid vermeiden / Datenschutzhinweise / Impressum«

    Can you please give me the path to the footer.php you saw? The one in my child theme is unchanged.

    Moderator threadi

    (@threadi)

    Yes, I mean exactly the footer.php in the main directory of the theme. Show me the source code of yours, maybe you can see an addition there that you are not aware of.

    Thread Starter Frank Spade

    (@spade)

    Thanks! Well I found 20 files with footer.php in its name, none of which contained any word from my footer.

    Here comes the code from my child theme:

    <?php
    /**
    * The template for displaying the footer
    *
    * Contains the closing of the #content div and all content after
    *
    * @package WordPress
    * @subpackage Twenty_Sixteen
    * @since Twenty Sixteen 1.0
    */
    ?>

    </div><!-- .site-content -->

    <footer id="colophon" class="site-footer">
    <?php if ( has_nav_menu( 'primary' ) ) : ?>
    <nav class="main-navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
    <?php
    wp_nav_menu(
    array(
    'theme_location' => 'primary',
    'menu_class' => 'primary-menu',
    )
    );
    ?>
    </nav><!-- .main-navigation -->
    <?php endif; ?>

    <?php if ( has_nav_menu( 'social' ) ) : ?>
    <nav class="social-navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
    <?php
    wp_nav_menu(
    array(
    'theme_location' => 'social',
    'menu_class' => 'social-links-menu',
    'depth' => 1,
    'link_before' => '<span class="screen-reader-text">',
    'link_after' => '</span>',
    )
    );
    ?>
    </nav><!-- .social-navigation -->
    <?php endif; ?>

    <div class="site-info">
    <?php
    /**
    * Fires before the twentysixteen footer text for footer customization.
    *
    * @since Twenty Sixteen 1.0
    */
    do_action( 'twentysixteen_credits' );
    ?>
    <span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
    <?php
    if ( function_exists( 'the_privacy_policy_link' ) ) {
    the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
    }
    ?>
    <!--a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>" class="imprint">
    <?php
    /* translators: %s: WordPress */
    printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' );
    ?>
    </a-->
    </div><!-- .site-info -->
    </footer><!-- .site-footer -->
    </div><!-- .site-inner -->
    </div><!-- .site -->

    <?php wp_footer(); ?>
    </body>
    </html>
    Moderator threadi

    (@threadi)

    This footer.php is slightly customized, but also explains the structure of the footer you currently see.

    Patient care Avoiding suffering at the end of life

    This is the text that you have saved as the blog name under Settings > General.

    Privacy policy

    This is the link that WordPress generates based on the information under Settings > Privacy. This links to the page that is configured as a privacy page.

    Imprint

    This is where it gets more complicated, because you have actually commented out this output in footer.php. I don’t see where this information comes from.

    Now of course the question is what exactly do you want to change in the footer? Do you want to insert another link or change the existing links? If you want to remove data protection, for example, you probably need to remove the data protection setting in WordPress (don’t select a page for it). If you want to change the page title, you can do this under Settings > General.

    However, if you want to add something, you would have to adjust the footer.php. In view of the strange output from the imprint, I would recommend that you simply test whether this is the correct footer.php. Simply add after

    <div class="site-info">

    this: aaaa – save the file on the server and then take a look at the frontend. If you see aaaa in the footer, then you’ve got the right file. If not, you have to check which other footer.php is used here. You can also determine this with such test outputs. As soon as you have found the right one, you could also add the content you want to add to the footer.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Edit footer’ is closed to new replies.