-
AuthorPosts
-
December 3, 2013 at 2:46 pm #195772
Hallo,
ist es möglich zum Beispiel die Startseite im “Boxed” und alle andere Seiten als “Streached” einzustellen?
vielen Dank im voraus…
December 5, 2013 at 2:07 am #196447Hey yoice!
I am not sure if this is the best way but please go to Appearance > Editor in WordPress dashboard and open header.php file and find
<html <?php language_attributes(); ?> class="<?php echo " html_$style ".$responsive." ".$headerS;?> ">and change it to
<html <?php language_attributes(); ?> class="<?php if(!is_page(734)) { echo " html_stretched ".$responsive." ".$headerS; } else { echo " html_$style ".$responsive." ".$headerS; }?> ">You just need to change page ID ( 734 in my case ) to page ID of your home page. You can right click on Chrome and on Firefox and click Inspect Elements to find out page ID’s http://i.imgur.com/TrDQ84Y.jpg
Regards,
YigitEDIT: Please choose boxed layout in Enfold theme options under Styling tab
-
This reply was modified 11 years, 11 months ago by
Yigit.
December 5, 2013 at 10:09 am #196571wooow, vielen dank, ich werde es ausprobieren, aber so sollte es auf jedem gehen, vielen Dank….
December 5, 2013 at 10:14 am #196573Hey!
Personally I recommend to use following code instead
<html <?php language_attributes(); ?> class="<?php if(!is_home() && !is_front_page()) { echo " html_stretched ".$responsive." ".$headerS; } else { echo " html_$style ".$responsive." ".$headerS; }?> ">the is_page() conditional is imo not the best solution to check if the current page is the home/front page.
Cheers!
Peter-
This reply was modified 11 years, 11 months ago by
Dude.
December 6, 2013 at 11:58 am #196957beide Varianten funktionieren leider nicht!
In der zweiten Variante wird ein Syntaxfehler ausgewiesen.
Liebe Grüße
JanDecember 6, 2013 at 1:37 pm #196974Hey!
Ja, im Code hat eine Klammer gefehlt – sollte nun funktionieren. Stelle bitte sicher, dass die Layout Option auf “boxed” gesetzt ist.
Best regards,
PeterDecember 6, 2013 at 1:56 pm #196975vielen Dank
-
This reply was modified 11 years, 11 months ago by
-
AuthorPosts
- The topic ‘Boxed / Streched’ is closed to new replies.
