Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1099541

    Gibt es einen Shortcode mit dem man den Seitennamen im Footer ausgeben lassen kann?

    Gruss Torsten

    • This topic was modified 5 years, 6 months ago by Aaanalog.
    #1099703

    Hallo Torsten,

    There isn’t any shortcode like that in the theme unfortunately, but you could create your own instead: https://codex.wordpress.org/Shortcode_API

    LG,
    Rikard

    #1099724

    Dankeschön Rikard,
    das ist mir leider zu kompliziert.

    Ich wollte gern im Footer Bereich in den Enfold Einstellungen einen eigenen Copyright Hinweis anzeigen und hierfür den WordPress Site Name abgreifen mit einem Shortcode, so wie z.B. der [nolink] funktioniert.

    Es grüßt Torsten

    #1099892

    Hallo Torsten,

    I’m not sure it it will work but you can try something like this in functions.php:

     function torsten_get_site_name() {
       $name = get_bloginfo('name');
       return $name;
     }
    
     add_shortcode( 'get_site_name', 'torsten_get_site_name' );

    You can then use this shortcode to display the site name:

    [get_site_name]

    LG,
    Rikard

    #1099962

    Hi Rikard,
    Thank you very much for this feature, it works flawlessly!

    Now I can use a text block to include everything on new websites, e.g. so:
    © [cur_year] [get_site_name] [nolink]

    Cheers Torsten

    P.S. I tried to write in English with the help of the Google Translator ;-)

    #1100092

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘WordPress Seitenname im Footer anzeigen?’ is closed to new replies.