Willkomen auf meiner Wissensdatenbank
Archiv
< Alle Themen
Drucken

So ändern Sie das Logo h1-Tag in Porto WordPress.

Um das Porto- zu ändern, führen Sie Standard-HTML-Tag des Logos h1 die folgenden Schritte aus:

TKiIkTdQbgPKemIVOI9Xspce0hqUO_SLDQ.png

1- Gehen Sie zu Aussehen >> Themen und aktivieren Sie das Porto Child Theme, wie im Screenshot unten gezeigt:

Tnf-4IiShJt1cVsEqunNSHMZNpIXUuAxbA.png

2- Now Go to Appearance >> Theme Editor and select the Child Theme functions.php file from the right panel as shown in the screenshot given below: 

bZxKlPmh2E6INYwmXzmeTdBENfEbqV0qlw.png

3- Now copy and paste the below-given code at the very bottom of Child Theme functions.php as shown in the screenshot given below: 

add_filter( 'porto_logo', 'porto_child_logo' );
function porto_child_logo( $logo_html )
{
return str_replace( array( '<h1 class="logo">', '</h1>' ), array( '<h2 class="logo">', '</h2>' ), $logo_html );
}
_9HHY_DF77N4i66iPisbstPZ87ScaeGt_Q.png

After saving the functions.php file refresh the website and you can see the HTML tag for the logo has been changed as per code.

J8cOYW6fnCWPXWOUStVOOtsY_Cq7Orl9KA.png

Bitte schauen Sie sich das komplette Video an: Klicken Sie hier für das Video 🙂

Ich hoffe, das hilft…

Inhaltsverzeichnis
Nach oben scrollen