Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Jak zmienić ustawienie kolumn w WP
smup33
post 27.02.2017, 21:33:36
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 25.02.2017

Ostrzeżenie: (0%)
-----


Prosił bym o jakieś wskazówki albo gotowy przerobiony kod do wklejenia z góry dziekuję za pomoc



Mam taki układ :




A chce taki zrobić :





Kod pliku front page

Kod
<?php get_header(); ?>

<div id="main_rotator" class="sada">
    <div class="inner">

        <?php (what_lang(true)) ? dynamic_sidebar('rotatoren') : dynamic_sidebar('rotatorpl'); ?>
    <?php if( function_exists('cyclone_slider') ) cyclone_slider('rotator-pl'); ?>
        <div style="clear:both;"></div>
    </div>
</div>


<div id="home_sec">
    <div class="inner">

        <div id="hs_left">
        
            <h2 class="main_title"><?php echo (what_lang(true)) ? 'Our offer' : 'Nasza oferta'; ?></h2>
            
            <div id="offers_box">
            
                <?php wp_reset_query(); $my_query = new WP_Query(array('post_type' => 'offer', 'posts_per_page' => 2, 'orderby' => 'menu_order', 'order' => 'ASC')); if($my_query->have_posts()): while($my_query->have_posts()): $my_query->the_post(); ?>
            
                    <div class="offer_box">
                        <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"></a>
                        <div class="ov">
                            <?php the_post_thumbnail(); ?>
                        </div>
                        <h2><?php the_title(); ?></h2>
                    </div>
                    
                <?php endwhile; endif; wp_reset_query(); ?>
                
                <div style="clear:both;"></div>
            </div>
            
            <div id="txt">
                <h2 class="title"><?php echo get_option('content_aboutus_title___'.what_lang()); ?></h2>
                <div class="desc"><?php echo nl2br(get_option('content_aboutus_content___'.what_lang())); ?></div>
            </div>
            
            <div id="cer_small">
            
                <?php wp_reset_query(); $i = 1; $my_query = new WP_Query(array('post_type' => 'h_certyfikaty', 'posts_per_page' => 999, 'orderby' => 'menu_order', 'order' => 'ASC')); if($my_query->have_posts()): while($my_query->have_posts()): $my_query->the_post(); if(get_post_meta($post->ID, 'your_prefix_h_certyfikaty_3', true) == "value1"): ?>
                    <?php if($i == 5) break; ?>
                    
                    <div class="cs_item">
                        <a href="<?php echo (what_lang(true)) ? get_bloginfo('url').'certifications/' : get_bloginfo('url').'/certyfikaty/'; ?>" title="<?php echo (what_lang(true)) ? 'Our awards' : 'Nasze wyróżnienia'; ?>">
                            <img src="<?php echo getCustomImageUrl($post->ID, 'your_prefix_h_certyfikaty_2', 'medium'); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" />
                        </a>
                    </div>
                
                <?php $i++; endif; endwhile; endif; wp_reset_query(); ?>
                            
                <div style="clear:both;"></div>
            </div>
        
        </div>
        
        <div id="hs_right">
        
            <p class="main_title">&nbsp;</p>
            
            <div class="wycena_box">
                <a href="<?php echo get_option('content_ask_link___'.what_lang()); ?>" title="Czytaj Więcej"></a>
                <h2><?php echo get_option('content_ask_title___'.what_lang()); ?></h2>
                <p><?php echo nl2br(get_option('content_ask_content___'.what_lang())); ?></p>
            </div>
            
            <?php if(get_option('social_ofero_link___'.what_lang()) != "" ): ?>
                <a class="orange button" href="<?php echo get_option('social_ofero_link___'.what_lang()); ?>" title="<?php echo get_option('social_ofero_title___'.what_lang()); ?>" target="_blank"><?php echo get_option('social_ofero_title___'.what_lang()); ?></a>
            <?php endif; ?>
            
            <?php if(get_option('social_ofachowcach_link___'.what_lang()) != "" ): ?>
                <a class="blue button" href="<?php echo get_option('social_ofachowcach_link___'.what_lang()); ?>" title="<?php echo get_option('social_ofachowcach_title___'.what_lang()); ?>" target="_blank"><?php echo get_option('social_ofachowcach_title___'.what_lang()); ?></a>
            <?php endif; ?>
            
        </div>
        
        <div style="clear:both;"></div>
        
        <div id="gallery_rot">
        
            <h2 class="title"><?php echo (what_lang(true)) ? 'Our projects' : 'Nasze realizacje'; ?></h2>
        
            <div id="g_div">
                <ul id="g_ul">
                    
                    <?php wp_reset_query(); $my_query = new WP_Query(array('post_type' => 'gallery', 'posts_per_page' => 20, 'orderby' => 'menu_order', 'order' => 'ASC')); if($my_query->have_posts()): while($my_query->have_posts()): $my_query->the_post(); ?>
                        
                        <li class="g_li">
                            <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                                <?php the_post_thumbnail('medium'); ?>
                            </a>
                        </li>
                        
                    <?php endwhile; endif; wp_reset_query(); ?>
            
                </ul>
            </div>
        
        </div>

        <div style="clear:both;"></div>
    </div>
</div>
        
<?php get_footer(); ?>




a kawałek kodu z pliku style.css


Kod
div#home_sec {
    background: white;
    border-radius: 15px;
    position: relative;
    padding-bottom: 26px;
}
div#home_sec div.inner {
}
div#home_sec div#hs_left {
    float: none;
    margin-left: 21px;
    width: 606px;
}
div#home_sec div#hs_right {
    float: right;
    width: 315px;
    margin-right: 21px;
}
div#home_sec h2.main_title {
    height: 56px;
    line-height: 56px;
    color: #292929;
    font-size: 22px;
    font-weight: 500;
}
div#home_sec p.main_title {
    height: 56px;
    line-height: 56px;
    color: #292929;
    font-size: 22px;
    font-weight: 500;
}






pomoże ktoś ?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 28.03.2024 - 12:50