รบกวนอยากปรับแต่ง theme หน้าแรกนะครับ

เริ่มโดย prasert29, 30 ตุลาคม 2014, 15:10:54

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

prasert29

:wanwan017: :wanwan017: :wanwan017:
สวัสดีครับ
ขอบคุณพี่ๆกูรูทุกท่านนะครับ ที่ทำให้ผม สามารถทำเว็บ จาก wordpress และปรับแต่งเองเป็นนิดหน่อย

thananit

#1
ไม่ค่อยเข้าใจน่ะค่ะ คือต้องการแบบไหนนะคะ เพราะเราก็ใช้ Theme นี้อยู่น่ะค่ะ แต่งแล้วหน้าตาเป็นแบบนี้ค่ะ พวกรูปแบบตรงกล่อง 3 กล่องจะ fix ขนาดไว้ เป้นไปตาม Theme ค่ะ
http://www.posthitz.com/

wasantec

ต้องแก้ Code ครับผมก็อธิบายไม่ได้ครับว่าแก้ยังไงมันต้องเห็น Code ก่อน เพราะแต่ละ Theme มันไม่เหมือนกัน

prasert29

อ้างถึงจาก: wasantec ใน 30 ตุลาคม 2014, 16:03:50
ต้องแก้ Code ครับผมก็อธิบายไม่ได้ครับว่าแก้ยังไงมันต้องเห็น Code ก่อน เพราะแต่ละ Theme มันไม่เหมือนกัน

Code อยู่ในไฟล์ไหนนะครับ เดียวผม ก๊อปมาให้ดู

prasert29

อ้างถึงจาก: thananit ใน 30 ตุลาคม 2014, 15:56:50
ไม่ค่อยเข้าใจน่ะค่ะ คือต้องการแบบไหนนะคะ เพราะเราก็ใช้ Theme นี้อยู่น่ะค่ะ แต่งแล้วหน้าตาเป็นแบบนี้ค่ะ พวกรูปแบบตรงกล่อง 3 กล่องจะ fix ขนาดไว้ เป้นไปตาม Theme ค่ะ
http://www.posthitz.com/

ที่ผมอยากได้คือ ให้มันสามารถ ใส่รูป ใน สามช่องนั้น แทน ข้อความ ตามที่ผม ทำรอยปะไว้นะครับ แล้ว คลิกจากภาพไปที่ลิงค์อื่นเลยนะครับ

thananit

อ้างถึงจาก: prasert29 ใน 30 ตุลาคม 2014, 16:06:29
อ้างถึงจาก: thananit ใน 30 ตุลาคม 2014, 15:56:50
ไม่ค่อยเข้าใจน่ะค่ะ คือต้องการแบบไหนนะคะ เพราะเราก็ใช้ Theme นี้อยู่น่ะค่ะ แต่งแล้วหน้าตาเป็นแบบนี้ค่ะ พวกรูปแบบตรงกล่อง 3 กล่องจะ fix ขนาดไว้ เป้นไปตาม Theme ค่ะ
http://www.posthitz.com/

ที่ผมอยากได้คือ ให้มันสามารถ ใส่รูป ใน สามช่องนั้น แทน ข้อความ ตามที่ผม ทำรอยปะไว้นะครับ แล้ว คลิกจากภาพไปที่ลิงค์อื่นเลยนะครับ
ลองใส่เป็น code HTML เข้าไปในช่องข้อความเลยค่ะ URL link ภาพ + Link จะให้ไปหน้าไหน
ในช่องนั้น HTML ใช้ได้ค่ะ แต่เราใช้เป็นข้อความ ไม่แน่ใจว่าถ้าเป็นภาพจะได้มั๊ยค่ะ ลองดูไม่เสียหายใส่เสร็จ Preview ดูก่อน อย่าพึ่งกด Update น่ะค่ะ
แต่ถ้าใส่แล้วไม่ชอบ ไม่โอ อันนี้ต้องไปแก้ css ไปที่ Editor น่ะค่ะ

prasert29

เจอหละครับ งง หนักกว่าเดิมครับ อยู่ในไฟล์ 02.homepage.php
------------------------------------------------------
// Set default values for images
   if ( ! empty( $thinkup_homepage_section1_image ) )
      $thinkup_homepage_section1_image = wp_get_attachment_image_src($thinkup_homepage_section1_image, 'column3-1/3');

   if ( ! empty( $thinkup_homepage_section2_image ) )
      $thinkup_homepage_section2_image = wp_get_attachment_image_src($thinkup_homepage_section2_image, 'column3-1/3');

   if ( ! empty( $thinkup_homepage_section3_image ) )
      $thinkup_homepage_section3_image = wp_get_attachment_image_src($thinkup_homepage_section3_image, 'column3-1/3');

   // Set default values for titles
   if ( empty( $thinkup_homepage_section1_title ) ) $thinkup_homepage_section1_title = 'Perfect For All';
   if ( empty( $thinkup_homepage_section2_title ) ) $thinkup_homepage_section2_title = '100% Responsive';
   if ( empty( $thinkup_homepage_section3_title ) ) $thinkup_homepage_section3_title = 'Powerful Framework';

   // Set default values for descriptions
   if ( empty( $thinkup_homepage_section1_desc ) )
   $thinkup_homepage_section1_desc = 'The modern design of Minamaze (Lite) makes it the perfect choice for any website. Business, charity, blog, well everything!';

   if ( empty( $thinkup_homepage_section2_desc ) )
   $thinkup_homepage_section2_desc = 'Minamaze (Lite) is 100% responsive. It looks great on all devices, from mobile to desktops and everything in between!';

   if ( empty( $thinkup_homepage_section3_desc ) )
   $thinkup_homepage_section3_desc = 'Get a taste of our awesome ThinkUpThemes Framework and make changes to your site easily, without touching any code at all!';

   // Get page names for links
   if ( !empty( $thinkup_homepage_section1_link ) ) $thinkup_homepage_section1_link = get_permalink( $thinkup_homepage_section1_link );
   if ( !empty( $thinkup_homepage_section2_link ) ) $thinkup_homepage_section2_link = get_permalink( $thinkup_homepage_section2_link );
   if ( !empty( $thinkup_homepage_section3_link ) ) $thinkup_homepage_section3_link = get_permalink( $thinkup_homepage_section3_link );


   if ( is_front_page() or is_thinkuphome() ) {
      if ( empty( $thinkup_homepage_sectionswitch ) or $thinkup_homepage_sectionswitch == '1' ) {

      echo '<div id="section-home"><div id="section-home-inner">';

         echo '<article class="section1 one_third">',
               '<div class="section">',
               '<div class="entry-header">';
               if ( empty( $thinkup_homepage_section1_image ) ) {
                  echo '<img src="' . get_template_directory_uri() . '/images/slideshow/featured1.png' . '" alt="" />';
               } else {
                  echo '<img src="' . $thinkup_homepage_section1_image[0] . '"  alt="" />';
               }
         echo   '</div>',
               '<div class="entry-content">',
               '<h3>' . $thinkup_homepage_section1_title . '</h3>' . wpautop( do_shortcode ( $thinkup_homepage_section1_desc ) ),
               '<p><a href="' . $thinkup_homepage_section1_link . '" class="more-link themebutton">' . __( 'Read More', 'lan-thinkupthemes' ) . '</a></p>',
               '</div>',
               '</div>',
            '</article>';

         echo '<article class="section2 one_third">',
               '<div class="section">',
               '<div class="entry-header">';
               if ( empty( $thinkup_homepage_section2_image ) ) {
                  echo '<img src="' . get_template_directory_uri() . '/images/slideshow/featured2.png' . '"  alt="" />';
               } else {
                  echo '<img src="' . $thinkup_homepage_section2_image[0] . '"  alt="" />';
               }
         echo   '</div>',
               '<div class="entry-content">',
               '<h3>' . $thinkup_homepage_section2_title . '</h3>' . wpautop( do_shortcode ( $thinkup_homepage_section2_desc ) ),
               '<p><a href="' . $thinkup_homepage_section2_link . '" class="more-link themebutton">' . __( 'Read More', 'lan-thinkupthemes' ) . '</a></p>',
               '</div>',
               '</div>',
            '</article>';

         echo '<article class="section3 one_third last">',
               '<div class="section">',
               '<div class="entry-header">';
               if ( empty( $thinkup_homepage_section3_image ) ) {
                  echo '<img src="' . get_template_directory_uri() . '/images/slideshow/featured3.png' . '"  alt="" />';
               } else {
                  echo '<img src="' . $thinkup_homepage_section3_image[0] . '"  alt="" />';
               }
         echo   '</div>',
               '<div class="entry-content">',
               '<h3>' . $thinkup_homepage_section3_title . '</h3>' . wpautop( do_shortcode ( $thinkup_homepage_section3_desc ) ),
               '<p><a href="' . $thinkup_homepage_section3_link . '" class="more-link themebutton">' . __( 'Read More', 'lan-thinkupthemes' ) . '</a></p>',
               '</div>',
               '</div>',
            '</article>';

      echo '<div class="clearboth"></div></div></div>';