Respuestas de foro creadas

Viendo 8 respuestas - de la 1 a la 8 (de un total de 8)
  • Iniciador del debate puchidj

    (@puchidj)

    Nadie?

    Iniciador del debate puchidj

    (@puchidj)

    Pues por eso quiero cambiar la url precisamente, para poner eso no pongas nada.

    Iniciador del debate puchidj

    (@puchidj)

    Mira te dejo mi página web. puchidj.es y te dejo la página web de otro dj que lo tiene puesto como quiero javimax.com

    Si te fijas el tiene puesto en esa sección «twitter oficial», a mi me gustaría poner un recuadro de publicidad en vez del reproductor.

    Gracias por tu ayuda.

    Iniciador del debate puchidj

    (@puchidj)

    Hola, gracias por tu respuesta he puesto el código así:

    <?php
    /*
    Template Name: Home
    */
    ?>
    
    <?php get_header(); ?>
    
                <!-- begin #full-width-slider -->
                <div id="full-width-slider">
                    <div class="container clearfix">
                    <?php if(of_get_option('sc_displayslider') == '1') { ?>
                    <?php if(of_get_option('sc_slidertype') == 'rev') { ?>
                        <?php putRevSlider( "homepage" ) ?>
                        <?php } ?>
                    <?php if(of_get_option('sc_slidertype') == 'flex') { ?>
                        <?php get_template_part( 'homepage', 'slider' ); ?>
                        <?php } ?>
                    <?php } ?>
                    </div>
                </div>
    
                <!-- end #full-width-slider -->
                <!-- begin #white-bg -->
                <div id="white-background" >
                    <div id="content" class="clearfix" style="padding-bottom: 0;">
                        <?php if(of_get_option('sc_homecontent') == '1') { ?>
    
                        <!--begin cols content -->
                        <div id="home-content">
                            <div class="container clearfix">
                                <div class="one-third">
                                    <div class="home-content-icon">
                                        <div class="icon-center">
                                            <img src="<?php echo of_get_option('sc_homecontent1img') ?>" class="img-align-left" alt="<?php echo of_get_option('sc_homecontent1title') ?>" />
                                        </div>
                                    </div>
                                    <h4><?php echo of_get_option('sc_homecontent1title') ?></h4>
                                    <p><?php echo of_get_option('sc_homecontent1') ?></p>
                                    <?php if (of_get_option('sc_homecontent1url')!='') { ?>
                                    <p class="readmore">
                                        <a href="<?php echo of_get_option('sc_homecontent1url') ?>"><?php _e('Read More', 'site5framework') ?></a>
                                    </p>
                                    <?php } ?>
                                </div>
    
                                <div class="one-third">
                                    <div class="home-content-icon">
                                        <div class="icon-center">
                                            <img src="<?php echo of_get_option('sc_homecontent2img') ?>" class="img-align-left" alt="<?php echo of_get_option('sc_homecontent2title') ?>" />
                                        </div>
                                    </div>
                                    <h4><?php echo of_get_option('sc_homecontent2title') ?></h4>
                                    <p><?php echo of_get_option('sc_homecontent2') ?></p>
                                    <?php if (of_get_option('sc_homecontent2url')!='') { ?>
                                    <p class="readmore">
                                        <a href="<?php echo of_get_option('sc_homecontent2url') ?>"><?php _e('Read More', 'site5framework') ?></a>
                                    </p>
                                    <?php } ?>
                                </div>
    
                                <div class="one-third last">
                                    <div class="home-content-icon">
                                        <div class="icon-center">
                                            <img src="<?php echo of_get_option('sc_homecontent3img') ?>" class="img-align-left" alt="<?php echo of_get_option('sc_homecontent3title') ?>" />
                                        </div>
                                    </div>
                                    <h4><?php echo of_get_option('sc_homecontent3title') ?></h4>
                                    <p><?php echo of_get_option('sc_homecontent3') ?></p>
                                    <?php if (of_get_option('sc_homecontent3url')!='') { ?>
                                    <p class="readmore">
                                        <a href="<?php echo of_get_option('sc_homecontent3url') ?>"><?php _e('Read More', 'site5framework') ?></a>
                                    </p>
                                    <?php } ?>
                                </div>
                            </div>
                        </div>
                        <!-- end cols content -->
    
                        <?php } ?>
    
     <!-- BLOG POST SECTION END HERE -->
    
                        <div class="one-third last" style="margin-bottom: 5px;">
                        <?php if(of_get_option('sc_eventshome') == '1') : ?>
                        <!-- UPCOMING EVENTS SECTION BEGIN HERE -->
                        <div class="one-third">
                            <h3 class="title-margin">
                                <?php echo of_get_option('sc_eventshometitle') ?>
                            </h3>
    
                            <div class="title-border">
                                <div class="title-block"></div>
                            </div>
    
                            <div class="one-third-block">
                                <ul id="home-event-items"  class="one-third" style="margin: 0;">
                                    <?php
                                    global $post;
                                    $term = get_query_var('term');
                                    $tax = get_query_var('taxonomy');
                                    $args=array('post_type'=> 'event','post_status'=> 'publish', 'orderby'=> 'menu_order', 'caller_get_posts'=>1, 'paged'=>$paged, 'posts_per_page'=>of_get_option('sc_eventhomeitemsperpage'));
                                    $taxargs = array($tax=>$term);
                                    if($term!='' && $tax!='') { $args  = array_merge($args, $taxargs); }
    
                                    query_posts($args);
    
                                    while ( have_posts()):the_post();
                                        $categories = wp_get_object_terms( get_the_ID(), 'event_types');
                                        ?>
    
                                    <!-- PROJECT ITEM STARTS -->
                                    <li class="event-home-item <?php foreach ($categories as $category) { echo $category->slug. ' '; } ?>" data-id="id-<?php the_ID(); ?>" data-type="<?php foreach ($categories as $category) { echo $category->slug. ' '; } ?>">
                                        <div class="event-date">
                                            <?php
                                            global $post;
                                            $date = get_post_meta( $post->ID, 'snbp_event_date', true );
                                            echo $date
                                            ?>
                                        </div>
    
                                        <div class="event-title">
                                            <h5>
                                                <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" title="<?php the_title(); ?>"> <?php the_title(); ?> </a>
                                            </h5>
                                        </div>
    
                                        <div class="event-venue">
                                            <?php
                                            global $post;
                                            $venue = get_post_meta( $post->ID, 'snbp_event_venue', true );
                                            echo $venue;
                                            ?>
                                        </div>
    
                                        <div class="ticket-button">
                                            <?php
    
                                            if (get_post_meta($post->ID, 'snbp_ticket_sold_out', true)) {
                                                echo '
                                                        <div class="event-cancel-out"><p>Sold Out</p></div><!-- end #event-cancel-out -->';
                                            } elseif (get_post_meta($post->ID, 'snbp_ticket_canceled', true)) {
                                                echo '
                                                        <div class="event-cancel-out"><p>Canceled</p></div><!-- end #event-cancel-out -->';
                                            } elseif (get_post_meta($post->ID, 'snbp_ticket_free', true)) {
                                                echo '
                                                        <div class="event-cancel-out"><p>Free Entry</p></div><!-- end #event-cancel-out -->';
                                            } else {
                                                global $post;
                                                $event_ticket = get_post_meta( $post->ID, 'snbp_event_ticket', true );
                                                echo '
                                                        <div class="event-ticket"><a href="' . $event_ticket . '" >Buy Tickets</a></div><!-- end .event-tickets -->';
                                            }
    
                                            ?>
                                        </div>
                                    </li>
                                    <!-- EVENTS ITEM ENDS -->
                                    <?php endwhile;
                                    wp_reset_query();
                                    ?>
                                </ul>
                            </div>
                        </div>
                        <?php endif ?>
                        <!-- UPCOMING EVENTS SECTION END HERE -->
    
                        <!-- LATEST VIDEO SECTION BEGIN HERE -->
                        <?php if(of_get_option('sc_videohome') == '1') : ?>
                            <h3 class="title-margin">
                                <?php echo of_get_option('sc_videohometitle') ?>
                            </h3>
    
                            <div class="title-border">
                                <div class="title-block"></div>
                            </div>
    
                            <div class="one-third">
                                <?php
                                $args=array('post_type'=> 'video', 'post_status'=> 'publish', 'orderby'=> 'menu_order', 'name'=> of_get_option('sc_video_post_id'), 'posts_per_page'=>of_get_option('sc_videopostsperhomepage')); query_posts($args);
                                if ( have_posts() ) :
                                    ?>
                                    <ul id="video-wrapper" class="homepage-video">
                                        <?php
                                        while (have_posts()): the_post();
                                            $categories = wp_get_object_terms( get_the_ID(), 'collections');
                                            ?>
                                            <!-- PROJECT ITEM STARTS -->
                                            <li>
                                                <div class="one-third-block">
                                                    <div class="item-content">
                                                        <div class="link-holder">
                                                            <div class="portfolio-item-holder">
                                                                <div class="portfolio-item-hover-content">
                                                                    <?php
                                                                    $thumbId = get_image_id_by_link ( get_post_meta($post->ID, 'snbp_pitemlink', true) );
                                                                    $thumb = wp_get_attachment_image_src($thumbId, 'portfolio-thumbnail', false);
                                                                    $large = wp_get_attachment_image_src($thumbId, 'large', false);
    
                                                                    global $post;
                                                                    $video = get_post_meta( $post->ID, 'snbp_video_link', true );
    
                                                                    if (!$thumb == ''){ ?>
                                                                        <a href="<?php echo $video ?>" title="<?php the_title(); ?>" data-rel="prettyPhoto" class="zoom video">View Image</a>
                                                                        <img src="<?php echo $thumb[0] ?>" alt="<?php the_title(); ?>" width="270" class="portfolio-img" />
                                                                        <?php } else { ?>
                                                                        <img src="<?php echo get_template_directory_uri(); ?>/library/images/sampleimages/portfolio-img.jpg" alt="<?php the_title(); ?>" width="220"  class="portfolio-img" />
                                                                        <?php }?>
    
                                                                    <div class="hover-options">
                                                                        <div class="carousel-hover-title">
                                                                            <h3>
                                                                                <a href=" <?php echo $large[0] ?> " data-rel="prettyPhoto" title="<?php the_title(); ?>"> <?php the_title(); ?> </a>
                                                                            </h3>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </li>
                                            <!-- PROJECT ITEM ENDS -->
                                            <?php
                                        endwhile;
                                        wp_reset_query();
                                        ?>
                                    </ul>
                                    <?php
                                else :
                                    ?>
    
                                    <?php
                                endif;
                                ?>
                            </div>
                        <?php endif ?>
                        <!-- LATEST VIDEO SECTION END HERE -->
    
                        <?php if(of_get_option('sc_soundcloudhome') == '1') : ?>
                            <h3 class="title-margin">
                                <?php echo of_get_option('sc_soundcloudhometitle') ?>
                            </h3>
    
                            <div class="title-border">
                                <div class="title-block"></div>
                            </div>
    
                            <div class="one-third-block">
                                <?php echo of_get_option('sc_soundcloud') ?>
                            </div>
                        <?php endif; ?>
    
                        </div>
    
                        <!--<div class="sound-cloud-widget">
                            <?php /*above_footer_widget(); //Action hook */?>
                        </div>-->
    
                    </div><!-- end #content -->
                </div>
                <!-- end #white-background -->
    <?php get_footer(); ?>

    Creo que es tal y como me dijistes, pero por lo que se ve no funciona se borra la parte de ÚLTIMA SESION tambien

    Iniciador del debate puchidj

    (@puchidj)

    De esta forma ya lo he intentado y lo que ocurre es que sale toda la web en blanco.

    Saludos.

    Iniciador del debate puchidj

    (@puchidj)

    Si, la imágen header.html esta subida en la carpeta imagenes del tema.
    Sigue sin funcionar…

    Iniciador del debate puchidj

    (@puchidj)

    No me sale nada

    Iniciador del debate puchidj

    (@puchidj)

    Poniéndolo de esa forma no me sale nada.

    Saludos.

Viendo 8 respuestas - de la 1 a la 8 (de un total de 8)