MarcinKorbiel.pl
Odpowiedź forum utworzona
-
Forum: Motywy
W odpowiedzi na: Widgety przestały działaćok, raczej nie – jak to mam zrobić?
Forum: Motywy
W odpowiedzi na: Widgety przestały działaćtaki błąd znalazłem w ustawieniach i nie mam pojęcia, od nie grzebałem w kodzie – można rzec: nie znam się na tym.
Warning: file_get_contents(https://www.googleapis.com/webfonts/v1/webfonts?sort=alpha) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/mkorbiel/domains/marcinkorbiel.pl/public_html/wp-content/themes/project10-theme/functions/other.php on line 641
Warning: Invalid argument supplied for foreach() in /home/mkorbiel/domains/marcinkorbiel.pl/public_html/wp-content/themes/project10-theme/functions/other.php on line 624
Forum: Motywy
W odpowiedzi na: Inny motyw dla storny głownej, inny dla wybranych podstronDziękuje. Trochę mi to zajęło ale stworzyłem motyw potomny. Poprzednio jak zmodyfikowałem szablon główny okazało się, że strona się zwiesza.
Możecie sprawdzić ten motyw?<?php /** * Template Name: Squize Page * * Description: Twenty Twelve loves the no-sidebar look as much as * you do. Use this page template to remove the sidebar from any page. * * Tip: to remove the sidebar from all posts and pages simply remove * any active widgets from the Main Sidebar area, and the sidebar will * disappear everywhere. * * The template for displaying the footer. * * Contains footer content and the closing of the * #main and #page div elements. * * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="main"> * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ ?><!DOCTYPE html> <!--[if IE 7]> <html class="ie ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html class="ie ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if !(IE 7) | !(IE 8) ]><!--> <html <?php language_attributes(); ?>> <!--<![endif]--> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width" /> <title><?php wp_title( '|', true, 'right' ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> <![endif]--> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="page" class="hfeed site"> <!-- treśc strony --> <div id="primary" class="site-content"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary --> <!-- stopka --> <footer id="colophon" role="contentinfo"> <a style="font-size:8px;" href="http://marcinkorbiel.pl/polityka-prywatnosci/" title="Polityka Prywatności"> Polityka Prywatności </a> </footer><!-- #colophon --> </div> </body> </html>Jak zrobić taki motyw potomny aby zastępował cały szablon dla podstrony?
Cel: gdy zmienię szablon wystarczy skopiować i drobna modyfikacja motywu potomnego by mieć znów ten sam wygląd.
Forum: Motywy
W odpowiedzi na: Inny motyw dla storny głownej, inny dla wybranych podstrondziękuje, po co pisałem że znam się cokolwiek 😛 nie rozumiem tego.
http://codex.wordpress.org/Page_Templates
http://codex.wordpress.org/images/thumb/a/a3/page-templates-pulldown-screenshot.png/180px-page-templates-pulldown-screenshot.png << chyba coś takiego jak tu mam przy jednym motywie na stronie tylko nie wiem jak to zrobić co jak i gdzie…
z angielskim u mnie średnio.
chce by po kliknięciu w link do konkurs wyświetliła się strona z innym motywem (nawet zupełnie innym) – dobrze gdyby od strony panelu wybierało się to właśnie z listy przy publikacji strony oraz wymagało możliwie jak najmniej grzebania w kodzie