StyledThemes

Add additional line below copyright information

Home Forums WordPress Themes – Premium Pure & Simple Add additional line below copyright information

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16939
    Gdub
    Participant

    Would like to add additional line of text with hyperlink for “maintained/ provided by” below the copyright information. Small bit of assistance if you don’t mind, using child theme and will be placing code inside of the footer.php copied into child folder unless directed otherwise.

    #22278
    Sushil Adhikari
    Moderator

    Hi Gdub,

    Please replace code [line no :36-37] with this code in child theme footer.php file to add extra information.

     . <?php esc_attr_e('All rights reserved.', 'puresimple'); echo '';?>
                <?php esc_attr_e('Maintained/ provided by', 'puresimple'); echo "&nbsp"; printf(__(' your data to displayed ', 'puresimple'), 'Your hyper link'); ?>

    There you can find string like:
    [Your displayed data] : string to display on link
    [Your hyper link] : URL of site you want to link

    Find screenshot if you got any problem.

    Note: Please try using this code only if you know basic of wordpress, otherwise you will face error.
    Lets us know how it goes.

    Thanks
    gdub.jpg

    Attachments:
    You must be logged in to view attached files.
    #22537
    Gdub
    Participant

    Is it possible to add a title attribute to the additional line??

    #22538
    Gdub
    Participant

    Sorry, also to have the additional link open in a new tab rather than the same tab as it does currently??

    #16940
    Bidur
    Moderator

    Hello Gdub,

    yes, you can add title attribute to it.

    do like below example to put title attribute and to open link in new tab

    <?php esc_attr_e('Maintained/ provided by', 'puresimple'); echo "&nbsp"; printf(__('<a href="/'.esc_url('%s').'"  /> your data to displayed ', 'puresimple'), 'Your hyper link'); ?>

    Note: target=”blank” opens link to new tab

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.