Pagina 1 din 1

Tema wp de la 0

Scris: Vin Ian 23, 2015 9:07 am
de ispas
Salut, sunt nou in wp, am inceput sa-mi creez propriul meu template.
Header,footer,si index.
Toate de la 0, acum totul merge ok,m-am descurcat binisor. Insa dupa ce am instalat niste plugin-uri de SEO mi-am dat seama ca nu vor fi valabile, deoarece in header eu nu am pus niciun cod specific, pentru a-mi incarca plugin-urile (ma gandesc ca exista asa ceva).
In concluzie, ce ar trebui sa fac sa functioneze aceste plugin-uri? Cel cu pricina trebuia sa-mi modifice tag-urile meta, insa evident nu s-a intamplat nimic.
Multumesc !

Re: Tema wp de la 0

Scris: Sâm Ian 24, 2015 12:55 pm
de Fast2Web
Buna,

Daca te uiti la o tema default din wordpress, in fisierul header.php poti observa urmatoarele:

Cod: Selectaţi tot

<title>
         <?php
            if (function_exists('is_tag') && is_tag()) {
               single_tag_title("Tag Archive for &quot;"); echo '&quot; - '; }
            elseif (is_archive()) {
               wp_title(''); echo ' Archive - '; }
            elseif (is_search()) {
               echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; }
            elseif (!(is_404()) && (is_single()) || (is_page())) {
               wp_title(''); echo ' - '; }
            elseif (is_404()) {
               echo 'Not Found - '; }
            if (is_home()) {
               bloginfo('name'); echo ' - '; bloginfo('description'); }
            else {
                bloginfo('name'); }
            if ($paged>1) {
               echo ' - page '. $paged; }
         ?>
   </title>


iar cel mai iimportant

Cod: Selectaţi tot

<?php wp_head(); ?>

Re: Tema wp de la 0

Scris: Dum Ian 25, 2015 9:02 am
de ispas
Multumesc mult, am sa incerc si revin cu un raspuns !

Re: Tema wp de la 0

Scris: Mar Mar 10, 2015 11:12 am
de Kaladan
Eu iti recomand sa te uiti pe tema underscores (http://underscores.me/) si ai sa vezi acolo cam tot ce ai nevoie pentru o tema de inceput sau in tutorialul de pe themeshaper (http://themeshaper.com/2012/10/22/the-themeshaper-wordpress-theme-tutorial-2nd-edition/)