-
מאתתגובות
-
15/04/2015 בשעה 16:32 #20408
shepherdog
Participantהיי,
אני מעוניין ליצור טמפלייט מקוסטם שיכלול את הבילדר.
ניסיתי ככה:
<?php
/*
Template Name: homepage
*/
get_header(); ?>
ואז הקוד של smart-page.php וגם של page.php
וזה לא מציג לי טוב.
אודה לעזרתכם15/04/2015 בשעה 17:55 #20419Yakir Sitbon
Participantתעתיק רק את הקוד שנמצא ב-
page.php.15/04/2015 בשעה 19:15 #20423shepherdog
Participantלא עובד:
<?php
/*
Template Name: homepage
*/if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( po_breadcrumbs_need_to_show() ) : ?>
<?php pojo_breadcrumbs(); ?>
<?php endif; ?>
<?php if ( pojo_is_show_page_title() ) : ?>
<header class="page-title">
<h1><?php the_title(); ?></h1>
</header>
<?php endif; ?>
<div class="entry-content">
<?php if ( ! Pojo_Core::instance()->builder->display_builder() ) : ?>
<?php the_content(); ?>
<?php pojo_link_pages(); ?>
<?php endif; ?>
</div>
<footer>
<?php pojo_button_post_edit(); ?>
</footer>
</article>
<?php
// Previous/next post navigation.
echo pojo_get_post_navigation(
array(
'prev_text' => __( '« Previous', 'pojo' ),
'next_text' => __( 'Next »', 'pojo' ),
)
);
?>
<?php endwhile;
else :
pojo_get_content_template_part( 'content', 'none' );
endif;15/04/2015 בשעה 19:29 #20424Yakir Sitbon
Participantמה לא עובד בקוד שכתבת? האם מגיע שגיאה? תפרט קצת בבקשה.
15/04/2015 בשעה 19:30 #20425shepherdog
Participantתגובה זו סומנה כפרטית.15/04/2015 בשעה 19:41 #20426Yakir Sitbon
Participantתרשום בתחילת הקובץ
get_header();ובסוףget_footer().15/04/2015 בשעה 19:50 #20428shepherdog
Participantכבר ניסיתי זה לא עוזר.
15/04/2015 בשעה 19:53 #20429Yakir Sitbon
Participantמה כתוב לך בשורה 44?
15/04/2015 בשעה 19:54 #20430shepherdog
Participantget_footer()
15/04/2015 בשעה 19:56 #20431Yakir Sitbon
Participantשמת נקודה פסיק?
תראה לי את הקובץ המלא פה15/04/2015 בשעה 20:00 #20432shepherdog
Participantתגובה זו סומנה כפרטית.15/04/2015 בשעה 20:17 #20433Yakir Sitbon
Participantברגע שעברת ל-Page Template אתה צריך לכתוב את ה-100% בצורה ידנית. אנא תעתיק אותם מהעמוד שהצגת.
15/04/2015 בשעה 20:21 #20434shepherdog
Participantהדבר היחיד שמסומן על 100% זה ב LAYOUT
והוא מסומן ככה כבר.
שינתי עדכנתי ושוב החזרתי ל 100% וזה לא עוזר15/04/2015 בשעה 20:22 #20435Yakir Sitbon
Participantכתבתי לך עמוד עכשיו בשליפה, לא בדקתי אותו. אנא תעדכן אם זה תקין לך: http://pastebin.com/dCxvxzsM
15/04/2015 בשעה 20:25 #20436shepherdog
Participantתגובה זו סומנה כפרטית.15/04/2015 בשעה 20:27 #20437shepherdog
Participantתשכח מזה אני מבין מה הבעיה 🙂
תודה על הכל! -
מאתתגובות
- הפורום 'תמיכה' נסגר לדיונים ולתגובות חדשות.
