Blogtitel/Untertitel manuell ändern

  • Hallo, meine Wordpressseite (http://www.weiz-sozial.net) enthält verschiedene Templates (Theme: admired), da sie ausgehend von einer Startseite aus 3 Projekten besteht. Jedes Template soll einen eigenen Blogtitel und Untertitel bekommen. Standardmäßig angezeigt wird jedoch auf jeder Seite der im Dashboard angegebene Blog- und Untertitel.

    Gibt es eine Möglichkeit mehrere Blog- und Untertitel zu definieren und diese den Templates zuzuweisen oder kann ich das manuell in der page.php ändern? Diese sieht so aus:

    [size=8]<?php

    /*
    Template Name: sgs
    */


    /**
    * The template for displaying all pages.
    *
    * @since admired 1.0
    */

    ?>

    <?php


    /**
    * The Header for our theme.
    *
    * @since admired 1.0
    */
    ?><!DOCTYPE html>
    <!--[if IE 6]> <html id="ie6" class="no-js" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 7]> <html id="ie7" class="no-js" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 8]> <html id="ie8" class="no-js" <?php language_attributes(); ?>> <![endif]-->
    <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
    <html class="no-js" <?php language_attributes(); ?>>
    <!--<![endif]-->
    <?php global $options;
    $options = get_option('admired_theme_options'); ?>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php
    if ( !empty ($options['admired_hide_metainfo'])) {
    wp_title(''); /* this is compatible with SEO plugins */
    } else {
    /* Else Print the <title> tag.
    ----------------------------*/
    global $page, $paged;

    wp_title( '|', true, 'right' );
    bloginfo( 'name' ); // Name.
    $site_description = get_bloginfo( 'description', 'display' ); // Description
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo " | $site_description";
    // Add page number:
    if ( $paged >= 2 || $page >= 2 )
    echo ' | ' . sprintf( __( 'Page %s', 'admired' ), max( $paged, $page ) );
    } ?> </title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    /* JavaScript for threaded comments.
    ----------------------------------*/
    if ( is_singular() && get_option( 'thread_comments' ) )
    wp_enqueue_script( 'comment-reply' );

    /* wp_head() before closing </head> tag.
    ---------------------------------------*/
    wp_head();
    ?>
    </head>

    <body <?php body_class(); ?>>
    <div id="head-wrapper">


    <?php /* ======== TOP MENU ======== */
    if ( isset ($options['admired_show_secondary_menu'])&& ($options['admired_show_secondary_menu'] != "") ) {
    get_template_part('top','menu'); } else { echo "";}?>
    <header id="branding" role="banner">
    <div id="header-group" class="clearfix">
    <div id="header-logo">
    <?php
    if ( ! empty( $options['admired_hide_title_discription'] ) && $options['admired_header_logo'] ) { ?>
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><span id="header-link"> </span></a>
    <?php } ?>
    <hgroup>
    <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
    <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
    </hgroup>
    <?php
    if ( isset ($options['admired_search_placement'])&& ($options['admired_search_placement'] == "Header") ) {
    get_search_form(); }
    if ( isset ($options['admired_show_social_icons'])&& ($options['admired_show_social_icons'] != "") ) {
    get_template_part('header','social');} else { echo "";}
    ?>
    </div>
    </div>
    </header><!-- #branding -->
    </div><!-- #head-wrapper -->
    <div id="page" class="hfeed">[/SIZE]

    Für Tipps wäre ich sehr dankbar! :razz:

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!