• Hy.

    So in the footer of my website, there a link “powered by wordpress”.
    I would like to had a link to several other site i own.

    This is the code inside footer.php
    `<div id=”site-generator”>
    <?php do_action( ‘twentyeleven_credits’ ); ?>

    <a>” title=”<?php esc_attr_e( ‘Semantic Personal Publishing Platform’, ‘twentyeleven’ ); ?>”><?php printf( __( ‘Proudly powered by %s’, ‘twentyeleven’ ), ‘WordPress’ ); ?></a>

    </div>`

    How do i had my code:

    <a>" title="<?php esc_attr_e( 'professional website', 'cecile rejasse' ); ?>"><?php printf( __( ' by Chou', 'cecile rejasse' ), 'cecile rejasse' ); ?></a>

    Thanks per advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey there,

    First off you should do this in a child theme:

    https://codex.www.ads-software.com/Child_Themes
    https://premium.wpmudev.org/blog/create-wordpress-child-theme/

    As it’s just links to your site I don’t think you need to worry about making them translatable unless you feel you’ll need to at some point?

    So you could just do this:

    <a href="LINK" title="TITLE OF LINK">LINK NAME</a>

    This is the basics of link. ??

    Take care.

    Thread Starter ceciRjas

    (@cecirjas)

    Thank you for answering me.

    I don’t want to do a childtheme, not until everything is ok. I know how to do it.

    I’m just not good with php. The fact is I know the code but when i put it in my page, the first link only appears so i’ld like the complete code to see where i’m mistaking

    Thanks

    Well that’s the complete link code I gave you before, you should be able to just add that into your footer container.

    Take care.

    Thread Starter ceciRjas

    (@cecirjas)

    well if i do this

    <div id="site-generator">
    <?php do_action( 'twentyeleven_credits' ); ?>
    
    <a>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
    
    <a href="www.cecilerejasse" title="cecilerejasse">cecilerejasse</a>
    
    </div>

    i doesn’t work, so i would like to know the complete code meaning the complete code inside the php file, because in just adding it wherever it does not work ^^

    How come you have:

    <a>" title

    ??

    This is how the code actually looks:

    <a href="<?php echo esc_url( __( 'https://www.ads-software.com/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>

    I’ve not added any spacing, line breaks or paragraphs here, just wanted to show you how it’s working:

    https://monosnap.com/image/tSLjoW0W7nueoPJQKAUx7XtecRFXeW

    Take care.

    Thread Starter ceciRjas

    (@cecirjas)

    i don’t know this is the code inside the file form twenty eleven theme

    That might not be the code in your Twenty Eleven if you edited it but it’s certainly the code in the originally.

    You can even see that in the SVN:

    https://themes.svn.www.ads-software.com/twentyeleven/1.8/footer.php

    Take care.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘add a link in my footer’ is closed to new replies.