Resultados de búsqueda para 'wpo'
-
-
Estoy buscando el modo de convertir mi theme en responsive, no quiero cambiarlo, estuve realizando pruebas que al parecer no se ejecutan agrego la etiqueta :
<meta name=»viewport» content=»width=device-width, initial-scale=1.0″>
en el header.php y no anda.
De todos modos no sé si será el mismo modo de programar que en un archivo.html.
Me ayudan? existe algún tutorial para seguir?
Gracias!
-
Hola a todos:
Les comento que me he bajado el tema «Reco», que es bastante sencillo y hasta el momento no tuve grandes inconveninentes… hasta ahora.
El tema me permite agregar una barra de post Destacados en la parte inferior del sitio. El problema es que en los ajustes me permite elegir de qué categoría serán los post a mostrar. Mi problema es que quiero que se vean los destacados de TODAS LAS CATEGORÍAS.
Por suerte no me costó encontrar el código, pero no me queda claro dónde tocar.
Muchas gracias!<?php $cat1 = get_option(SHORT_NAME . 'category_1'); $args = array( 'cat' => $cat1, 'showposts' => 4); if ($duplicate != true) { $args = array( 'cat' => $cat1, 'showposts' => 4, 'post__not_in' => $do_not_duplicate); } $recent = new WP_Query($args); if ($recent->have_posts() && (! ($cat1 < 0))) { while ($recent->have_posts()) : $recent->the_post(); $do_not_duplicate[] = $post->ID; $image = get_post_meta($post->ID, "Image", $single = true); ?> <div class="portfolio-contenthm"> <?php if ($image !== '') { ?> <a href="<?php the_permalink(); ?>" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/phpThumb/phpThumb.php?src=<?php echo $image; ?>&h=95&w=226&zc=1&q=100" alt="<?php the_title(); ?>" style="border:none;" /></a> <?php } else { echo ''; } ?> <div class="m-blog-title2s"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div> <div class="pdiinf"><?php the_time('F jS, Y') ?></div> </div> <?php endwhile; } else { print_emp_cat('1', $cat1); } ?>
-
Hola, tengo instalado en host mi pagina estática y en un directorio mi blog en wordpress. Quiero colocar las ultimas entradas en el index de mi pagina estatica en una div que ya tengo separada.
Encontre este codigo y que funciona
<?php
define(‘WP_USE_THEMES’, false);
require_once($_SERVER[‘DOCUMENT_ROOT’] . ‘/directorio-blog/wp-blog-header.php’);
query_posts(‘showposts=7’);
echo ‘- ‘;
- ID) . «‘>»;
the_title();
echo ‘
while (have_posts ()): the_post();
echo »‘;
endwhile;
echo ‘‘;
?>Pero no incluye la imagen de mi post. Como puedo obtener esa parte del codigo que falta y que la imagen flote a la izquierda y el titulo asi como el resumen a la derecha?
- ID) . «‘>»;
-
Hola, me gustaría quitar mi player, no se que es lo que tengo que borrar exactamente de mi home para que no salga mas, me gustaría quitarlo porque en su lugar quiero poner otra cosa.
Gracias.
Aquí dejo el código:
<?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 } ?> <div class="two-third" style="margin-bottom: 0;"> <?php if(of_get_option('sc_portfoliohome') == '1') : ?> <div class="one-third"> <h3 class="title-margin"> <?php echo of_get_option('sc_portfoliohometitle') ?> </h3> <div class="title-border"> <div class="title-block"></div> </div> <div class="one-third-block"> <?php $args=array('post_type'=> 'audio', 'post_status'=> 'publish','orderby'=> 'menu_order','posts_per_page'=>8,'showposts'=>8,'caller_get_posts'=>1,'paged'=>$paged,); query_posts($args); if ( have_posts() ) : ?> <ul id="projects-carousel" class="loading"> <?php while (have_posts()): the_post(); $categories = wp_get_object_terms( get_the_ID(), 'albums'); ?> <!-- PROJECT ITEM STARTS --> <li> <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); if (!$thumb == ''){ ?> <a href="<?php the_permalink() ?>" class="zoom">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> <?php //check if pricing URL exists and show link global $post; $button1_url = get_post_meta($post->ID, 'snbp_button1_url', TRUE); $button1 = get_post_meta($post->ID, 'snbp_button1', TRUE); if($button1_url != '') { ?> <div class="audio-buy-button"><a href="<?php echo $button1_url ?>" title="<?php echo $button1 ?>"><?php echo $button1 ?></a></div> <?php } ?> <?php //check if pricing URL exists and show link global $post; $button2_url = get_post_meta($post->ID, 'snbp_button2_url', TRUE); $button2 = get_post_meta($post->ID, 'snbp_button2', TRUE); if($button2_url != '') { ?> <div class="audio-buy-button"><a href="<?php echo $button2_url ?>" title="<?php echo $button2 ?>"><?php echo $button2 ?></a></div> <?php } ?> <?php //check if pricing URL exists and show link global $post; $button3_url = get_post_meta($post->ID, 'snbp_button3_url', TRUE); $button3 = get_post_meta($post->ID, 'snbp_button3', TRUE); if($button3_url != '') { ?> <div class="audio-buy-button"><a href="<?php echo $button3_url ?>" title="<?php echo $button3 ?>"><?php echo $button3 ?></a></div> <?php } ?> <?php //check if pricing URL exists and show link global $post; $button4_url = get_post_meta($post->ID, 'snbp_button4_url', TRUE); $button4 = get_post_meta($post->ID, 'snbp_button4', TRUE); if($button4_url != '') { ?> <div class="audio-buy-button"><a href="<?php echo $button4_url ?>" title="<?php echo $button4 ?>"><?php echo $button4 ?></a></div> <?php } ?> <?php //check if pricing URL exists and show link global $post; $button5_url = get_post_meta($post->ID, 'snbp_button5_url', TRUE); $button5 = get_post_meta($post->ID, 'snbp_button5', TRUE); if($button5_url != '') { ?> <div class="audio-buy-button"><a href="<?php echo $button5_url ?>" title="<?php echo $button5 ?>"><?php echo $button5 ?></a></div> <?php } ?> </li> <!-- PROJECT ITEM ENDS --> <?php endwhile; wp_reset_query(); ?> </ul> <?php else : ?> <?php endif; ?> </div> </div> <!-- LATEST ALBUMS CAROUSEL ENDS HERE --> <!-- HOMEPAGE PLAYER BEGIN HERE --> <div class="one-third last"> <h3 class="title-margin"> <?php echo of_get_option('sc_playerhometitle') ?> </h3> <div class="title-border"> <div class="title-block"></div> </div> <div class="one-third-block"> <div id="componentWrapper"> <div class="playerHolder"> <div class="player_controls"> <!-- pause/play --> <div class="controls_toggle"><img src='<?php echo get_template_directory_uri(); ?>/library/images/html5-audio-player/set1/play.png' width='30' height='31' alt='controls_toggle'/></div> </div> <!-- progress --> <div class="player_progress"> <div class="progress_bg"></div> <div class="load_progress"></div> <div class="play_progress"></div> </div> <!-- song time --> <div class="player_mediaTime"> <!-- current time and total time are separated so you can change the design if needed. --> <div class="player_mediaTime_current"></div><div class="player_mediaTime_total"></div> </div> <!-- volume tooltip --> <div class="player_volume_tooltip"><p></p></div> <!-- progress tooltip --> <div class="player_progress_tooltip"><p></p></div> </div> <div class="playlistHolder"> <div class="componentPlaylist"> <div class="playlist_inner"> <!-- playlist items are appended here! --> </div> </div> <!-- preloader --> <div class="preloader"></div> </div> </div> <!-- List of playlists --> <div id="playlist_list"> <?php global $post; $term = get_query_var('term'); $tax = get_query_var('taxonomy'); $args=array('post_type'=> 'audio', 'post_status'=> 'publish', 'orderby'=> 'menu_order', 'name'=> of_get_option('sc_audio_post_id'), 'posts_per_page'=>1,); $taxargs = array($tax=>$term); if($term!='' && $tax!='') { $args = array_merge($args, $taxargs); } query_posts($args); while ( have_posts()):the_post(); $category = wp_get_object_terms( get_the_ID(), 'albums'); ?> <!-- local playlist --> <ul id='playlist1'> <?php $player = null; $playlist = null; $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); $arrImages =& get_children('post_type=attachment&orderby=menu_order&order=DESC&post_mime_type=audio/mpeg&post_parent=' . get_the_ID()); if ($arrImages) { foreach ($arrImages as $attachment) { ?> <li class= "playlistItem" data-type='local' data-mp3Path="<?php echo wp_get_attachment_url($attachment->ID) ?>" data-oggPath=""> <a class="playlistNonSelected" href='#'><?php echo $attachment->post_title ?></a> </li> <?php } } ?> </ul> <?php endwhile; wp_reset_query(); ?> </div> </div> </div> <?php endif ?> <!-- HOMEPAGE PLAYER END HERE --> <!-- BLOG POST SECTION BEGIN HERE --> <?php if(of_get_option('sc_bloghome') == '1') : ?> <div class="two-third" style="margin-bottom: 0;"> <h3 class="title-margin"> <?php echo of_get_option('sc_bloghometitle') ?> </h3> <div class="title-border"> <div class="title-block"></div> </div> <div class="two-third" style="margin-bottom: 0;"> <ul id="home-blog-items" class="two-third" style="margin: 0;"> <?php global $post; $term = get_query_var('term'); $tax = get_query_var('taxonomy'); $args= array('post_type'=> 'post','post_status'=> 'publish', 'caller_get_posts'=>1, 'paged'=>$paged, 'posts_per_page'=>of_get_option('sc_blogpostsperpage')); $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(), 'categories'); ?> <!-- PROJECT ITEM STARTS --> <li class="two-third-block <?php foreach ($categories as $category) { echo $category->slug. ' '; } ?>" data-id="id-<?php the_ID(); ?>" data-type="<?php foreach ($categories as $category) { echo $category->slug. ' '; } ?>"> <!-- begin article --> <?php if ( has_post_format( 'image' ) ) : { ?> <article class="image-post"> <div class="entry-body"> <!-- image custom post--> <div class="entry-content"> <?php get_template_part( 'lib/post-formats/image' ); ?> <!-- home custom excerpt --> <div class="excerpt"> <?php if (is_singular()): the_content(); else : ?> <?php echo excerpt(15); ?> <?php endif;?> </div> <!-- home custom excerpt --> </div> <!-- image custom post--> </div> <!-- end article section --> </article> <?php } elseif ( has_post_format( 'gallery' ) ) : { ?> <article class="gallery-post"> <div class="entry-body"> <!-- gallery custom post--> <div class="entry-content"> <?php get_template_part( 'lib/post-formats/gallery' ); ?> <!-- home custom excerpt --> <div class="excerpt"> <?php if (is_singular()): the_content(); else : ?> <?php echo excerpt(15); ?> <?php endif;?> </div> <!-- home custom excerpt --> </div> <!-- gallery custom post--> </div> <!-- end article section --> </article> <?php } elseif ( has_post_format( 'video' ) ) : { ?> <article class="video-post"> <?php get_template_part( 'lib/post-formats/video' ); ?> </article> <?php } elseif ( has_post_format( 'link' ) ) : { ?> <article class="link-post"> <?php get_template_part( 'lib/post-formats/link' ); ?> </article> <?php } elseif ( has_post_format( 'quote' ) ) : { ?> <article class="quote-post"> <?php get_template_part( 'lib/post-formats/quote' ); ?> </article> <?php } elseif ( has_post_format( 'aside' ) ) : { ?> <article class="aside-post"> <?php get_template_part( 'lib/post-formats/aside' ); ?> </article> <?php } else : { ?> <article class="standard-post"> <div class="entry-body"> <!-- standard post--> <div class="entry-content"> <?php get_template_part( 'lib/post-formats/standard' ); ?> <!-- home custom excerpt --> <div class="excerpt"> <?php if (is_singular()): the_content(); else : ?> <?php echo excerpt(15); ?> <?php endif;?> </div> <!-- home custom excerpt --> </div> <!-- standard post--> </div> <!-- end article section --> </article> <?php } endif; ?> <!-- end article --> </li> <!-- EVENTS ITEM ENDS --> <?php endwhile; wp_reset_query(); ?> </ul> </div> </div> <?php endif ?> </div> <!-- 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(); ?>
-
Hola a todos:
Les comento que me he bajado el tema «Reco», que es bastante sencillo y hasta el momento no tuve grandes inconveninentes… hasta ahora.
El tema me permite agregar una barra de post Destacados en la parte inferior del sitio. El problema es que en los ajustes me permite elegir de qué categoría serán los post a mostrar. Mi problema es que quiero que se vean los destacados de TODAS LAS CATEGORÍAS.
Por suerte no me costó encontrar el código, pero no me queda claro dónde tocar.
Muchas gracias!<?php $cat1 = get_option(SHORT_NAME . 'category_1'); $args = array( 'cat' => $cat1, 'showposts' => 4); if ($duplicate != true) { $args = array( 'cat' => $cat1, 'showposts' => 4, 'post__not_in' => $do_not_duplicate); } $recent = new WP_Query($args); if ($recent->have_posts() && (! ($cat1 < 0))) { while ($recent->have_posts()) : $recent->the_post(); $do_not_duplicate[] = $post->ID; $image = get_post_meta($post->ID, "Image", $single = true); ?> <div class="portfolio-contenthm"> <?php if ($image !== '') { ?> <a href="<?php the_permalink(); ?>" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/phpThumb/phpThumb.php?src=<?php echo $image; ?>&h=95&w=226&zc=1&q=100" alt="<?php the_title(); ?>" style="border:none;" /></a> <?php } else { echo ''; } ?> <div class="m-blog-title2s"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div> <div class="pdiinf"><?php the_time('F jS, Y') ?></div> </div> <?php endwhile; } else { print_emp_cat('1', $cat1); } ?>
-
Qué tal, tengo un serio problema con mi sitio web. Es: https://espirulinaperu.com , el tema es Vantage y dice que es compatible con Woocommerce. Sin embargo, tengo problemas, porque no me aparece la página /carro (ni /cart ni nada), ni tampoco la clásica /mi-cuenta ni otras que sí tengo en otras páginas donde también he usado Woocommerce.
No sé si hay un problema con los Enlaces permanentes, a mí me sale todo bien, el código de functions.php es:
<?php /** * vantage functions and definitions * * @package vantage * @since vantage 1.0 * @license GPL 2.0 */ define( 'SITEORIGIN_THEME_VERSION' , '1.2' ); define( 'SITEORIGIN_THEME_ENDPOINT' , 'http://updates.siteorigin.com' ); if( file_exists( get_template_directory() . '/premium/functions.php' ) ){ include get_template_directory() . '/premium/functions.php'; } else { include get_template_directory() . '/upgrade/upgrade.php'; } // Include all the SiteOrigin extras include get_template_directory() . '/extras/settings/settings.php'; include get_template_directory() . '/extras/premium/premium.php'; include get_template_directory() . '/extras/update/update.php'; include get_template_directory() . '/extras/adminbar/adminbar.php'; include get_template_directory() . '/extras/plugin-activation/plugin-activation.php'; include get_template_directory() . '/extras/metaslider/metaslider.php'; // Load the theme specific files include get_template_directory() . '/inc/panels.php'; include get_template_directory() . '/inc/settings.php'; include get_template_directory() . '/inc/extras.php'; include get_template_directory() . '/inc/template-tags.php'; include get_template_directory() . '/inc/gallery.php'; include get_template_directory() . '/inc/metaslider.php'; include get_template_directory() . '/inc/widgets.php'; include get_template_directory() . '/inc/menu.php'; include get_template_directory() . '/inc/woocommerce.php'; if ( ! function_exists( 'vantage_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating * support post thumbnails. * * @since vantage 1.0 */ function vantage_setup() { // Initialize SiteOrigin settings siteorigin_settings_init(); // Make the theme translatable load_theme_textdomain( 'vantage', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head add_theme_support( 'automatic-feed-links' ); // Enable support for Post Thumbnails add_theme_support( 'post-thumbnails' ); add_theme_support( 'siteorigin-panels', array( 'home-page' => true, 'margin-bottom' => 35, 'home-page-default' => 'default-home', 'home-demo-template' => 'home-panels.php', 'responsive' => siteorigin_setting( 'layout_responsive' ), ) ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'vantage' ), ) ); // Enable support for Post Formats add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); // We support WooCommerce add_theme_support('woocommerce'); // define('WOOCOMMERCE_USE_CSS', false); set_post_thumbnail_size(720, 380, true); add_image_size('vantage-thumbnail-no-sidebar', 1080, 380, true); add_image_size('vantage-slide', 960, 480, true); add_image_size('vantage-carousel', 272, 182, true); add_image_size('vantage-grid-loop', 436, 272, true); if( !defined('SITEORIGIN_PANELS_VERSION') && !siteorigin_plugin_activation_is_activating('siteorigin-panels') ){ // Only include panels lite if the panels plugin doesn't exist include get_template_directory() . '/extras/panels-lite/panels-lite.php'; } add_theme_support('siteorigin-premium-teaser', array( 'customizer' => true, 'settings' => true, )); global $content_width, $vantage_site_width; if ( ! isset( $content_width ) ) $content_width = 720; /* pixels */ if ( ! isset( $vantage_site_width ) ) { $vantage_site_width = siteorigin_setting('layout_bound') == 'full' ? 1080 : 1010; } } endif; // vantage_setup add_action( 'after_setup_theme', 'vantage_setup' ); /** * Setup the WordPress core custom background feature. * * @since vantage 1.0 */ function vantage_register_custom_background() { if(siteorigin_setting('layout_bound') == 'boxed') { $args = array( 'default-color' => 'e8e8e8', 'default-image' => '', ); $args = apply_filters( 'vantage_custom_background_args', $args ); add_theme_support( 'custom-background', $args ); } } add_action( 'after_setup_theme', 'vantage_register_custom_background' ); /** * Register widgetized area and update sidebar with default widgets * * @since vantage 1.0 */ function vantage_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'vantage' ), 'id' => 'sidebar-1', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Footer', 'vantage' ), 'id' => 'sidebar-footer', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Header', 'vantage' ), 'id' => 'sidebar-header', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } add_action( 'widgets_init', 'vantage_widgets_init' ); function vantage_print_styles(){ if( !siteorigin_setting('layout_responsive') ) return; // Create the footer widget CSS $sidebars_widgets = wp_get_sidebars_widgets(); $count = isset($sidebars_widgets['sidebar-footer']) ? count($sidebars_widgets['sidebar-footer']) : 1; $count = max($count,1); ?> <style type="text/css" media="screen"> #footer-widgets .widget { width: <?php echo round(100/$count,3) . '%' ?>; } @media screen and (max-width: 640px) { #footer-widgets .widget { width: auto; float: none; } } </style> <?php } add_action('wp_head', 'vantage_print_styles', 11); /** * Register all the bundled scripts */ function vantage_register_scripts(){ wp_register_script( 'flexslider' , get_template_directory_uri() . '/js/jquery.flexslider.min.js' , array('jquery'), '2.1' ); wp_register_script( 'fitvids' , get_template_directory_uri() . '/js/jquery.fitvids.min.js' , array('jquery'), '1.0' ); } add_action( 'wp_enqueue_scripts', 'vantage_register_scripts' , 5); /** * Enqueue scripts and styles */ function vantage_scripts() { wp_enqueue_style( 'vantage-style', get_stylesheet_uri(), array(), SITEORIGIN_THEME_VERSION ); wp_enqueue_script( 'vantage-main' , get_template_directory_uri() . '/js/jquery.theme-main.min.js', array('jquery', 'flexslider', 'fitvids'), SITEORIGIN_THEME_VERSION ); wp_enqueue_style( 'vantage-fontawesome', get_template_directory_uri().'/fontawesome/css/font-awesome.css', array(), '3.2.1' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } if ( is_singular() && wp_attachment_is_image() ) { wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.min.js', array( 'jquery' ), '20120202' ); } } add_action( 'wp_enqueue_scripts', 'vantage_scripts' ); /** * Enqueue any webfonts we need */ function vantage_web_fonts(){ if( !siteorigin_setting('logo_image') ) { wp_enqueue_style('vantage-google-webfont-roboto', 'http://fonts.googleapis.com/css?family=Roboto:300'); } } add_action( 'wp_enqueue_scripts', 'vantage_scripts' ); /** * Add custom body classes. * * @param $classes * @package vantage * @since 1.0 */ function vantage_body_class($classes){ if( siteorigin_setting('layout_responsive') ) $classes[] = 'responsive'; $classes[] = 'layout-'.siteorigin_setting('layout_bound'); $classes[] = 'no-js'; if( !is_active_sidebar('sidebar-1') ) { $classes[] = 'no-sidebar'; } if( wp_is_mobile() ) { $classes[] = 'mobile-device'; } if(siteorigin_setting('navigation_menu_search')) { $classes[] = 'has-menu-search'; } return $classes; } add_filter('body_class', 'vantage_body_class'); function vantage_wp_head(){ ?> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> <![endif]--> <!--[if (gte IE 6)&(lte IE 8)]> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/selectivizr.js"></script> <![endif]--> <?php } add_action('wp_head', 'vantage_wp_head'); /** * Display some text in the text area. */ function vantage_top_text_area(){ echo wp_kses_post( siteorigin_setting('logo_header_text') ); } add_action('vantage_support_text', 'vantage_top_text_area'); /** * Display the scroll to top link. */ function vantage_back_to_top() { if( !siteorigin_setting('navigation_display_scroll_to_top') ) return; ?><a href="#" id="scroll-to-top"><?php __('Back To Top', 'vantage') ?></a><?php } add_action('wp_footer', 'vantage_back_to_top'); /** * @return mixed */ function vantage_get_query_variables(){ global $wp_query; $vars = $wp_query->query_vars; foreach($vars as $k => $v) { if(empty($vars[$k])) unset ($vars[$k]); } unset($vars['update_post_term_cache']); unset($vars['update_post_meta_cache']); unset($vars['cache_results']); unset($vars['comments_per_page']); return $vars; } /** * Render the slider. */ function vantage_render_slider(){ if( is_front_page() && siteorigin_setting('home_slider') != 'none' ) { $settings_slider = siteorigin_setting('home_slider'); if(!empty($settings_slider)) { $slider = $settings_slider; } } if( is_page() && get_post_meta(get_the_ID(), 'vantage_metaslider_slider', true) != 'none' ) { $page_slider = get_post_meta(get_the_ID(), 'vantage_metaslider_slider', true); if( !empty($page_slider) ) { $slider = $page_slider; } } if( empty($slider) ) return; global $vantage_is_main_slider; $vantage_is_main_slider = true; ?><div id="main-slider" <?php if( siteorigin_setting('home_slider_stretch') ) echo 'data-stretch="true"' ?>><?php if($slider == 'demo') get_template_part('slider/demo'); elseif( substr($slider, 0, 5) == 'meta:' ) { list($null, $slider_id) = explode(':', $slider); $slider_id = intval($slider_id); echo do_shortcode("[metaslider id=" . $slider_id . "]"); } ?></div><?php $vantage_is_main_slider = false; } function vantage_post_class_filter($classes){ $classes[] = 'post'; if( has_post_thumbnail() && !is_singular() ) { $classes[] = 'post-with-thumbnail'; $classes[] = 'post-with-thumbnail-' . siteorigin_setting('blog_featured_image_type'); } $classes = array_unique($classes); return $classes; } add_filter('post_class', 'vantage_post_class_filter'); /** * Filter the posted on parts to remove the ones disabled in settings. * * @param $parts * @return mixed */ function vantage_filter_vantage_post_on_parts($parts){ if(!siteorigin_setting('blog_post_author')) $parts['by'] = ''; if(!siteorigin_setting('blog_post_date')) $parts['on'] = ''; return $parts; } add_filter('vantage_post_on_parts', 'vantage_filter_vantage_post_on_parts'); /** * Get the site width. * * @return int The side width in pixels. */ function vantage_get_site_width(){ return apply_filters('vantage_site_width', !empty($GLOBALS['vantage_site_width']) ? $GLOBALS['vantage_site_width'] : 1080); } /** * Add the responsive header */ function vantage_responsive_header(){ if( siteorigin_setting('layout_responsive') ) { ?><meta name="viewport" content="width=device-width, initial-scale=1" /><?php } else { ?><meta name="viewport" content="width=1280" /><?php } } add_action('wp_head', 'vantage_responsive_header');
Quisiera saber si hay algo que está funcionando mal o algo qeu pueda hacer para solucionar este problema. Es urgente, gracias!!!
-
Hola a todos. primero que nada felicitarlos por esta gran comunidad.
Estoy tratando de construir un pequeño sitio en wordpress desde mi localhost. Actualmente utilizo el tema Mordor ( http://www.web2feel.com/mordor/ ) . Quisiera si por favor me darian una mano intentando cambiar el texto del header por una imagen, he probado muchos codigos y busque mucho en internet y la verdad no me ha dado resultado.Aca les coloco el codigo del head:
<?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="main"> * * @package web2feel * @since web2feel 1.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width" /> <title><?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'web2feel' ), max( $paged, $page ) ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link href='http://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700' rel='stylesheet' type='text/css'> <!--[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 "> <header id="masthead" class="site-header container_12 cf" role="banner"> <div class="grid_4"> <h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> </div> <div class="grid_8"> <?php wp_nav_menu( array( 'container_id' => 'submenu','container_class' => 'clearfix','theme_location' => 'primary','menu_id'=>'web2feel' ,'menu_class'=>'sfmenu','fallback_cb'=> 'fallbackmenu' ) ); ?> </div> </header><!-- #masthead .site-header --> <div id="main" class="site-main">
Agradezco cualquier ayuda. Muchas gracias
-
a Continuacion explico que La plantilla principal de mi pagina permite la vista del reproductor jwplayer
pero esta plantilla de paginad e captura no me permite la vista de dichos videos.
Anexo escrito el codigo php de la plantilla la cual uso como atributo de pagina para que no me muestre el menu ni el sidebar ni la cabecera. espero ayuda algun codigo para que se vean los videos de jwplayer. y otros reproductores que tampoco me permite ver.
<?php
/**
Template Name:*Pagina Captura – Una Columna
*/
$image_url=get_bloginfo(‘stylesheet_directory’).’/wpoptins_images’;
$blog_url=get_bloginfo(‘url’);$wpoptins_warning_text=get_post_meta($post->ID, «wpoptins_warning_text», true);
$warning_text = wordwrap($wpoptins_warning_text, 38, «
\n»);
$wpoptins_add_border=get_post_meta($post->ID, «wpoptins_add_border», true);
$wpoptins_form_code=get_post_meta($post->ID, «wpoptins_form_code», true);
$wpoptins_bg_color=get_post_meta($post->ID, «wpoptins_bg_color», true);
$wpoptins_table_color=get_post_meta($post->ID, «wpoptins_table_color», true);
$wpoptins_page_width=get_post_meta($post->ID, «wpoptins_page_width», true);
if(!$wpoptins_page_width){$wpoptins_page_width=700;}
$wpoptins_round_border=get_post_meta($post->ID, «wpoptins_round_border», true);
$wpoptins_add_shadow=get_post_meta($post->ID, «wpoptins_add_shadow», true);
$wpoptins_add_arrows=get_post_meta($post->ID, «wpoptins_add_arrows», true);
$wpoptins_add_arrow=get_post_meta($post->ID, «wpoptins_add_arrow», true);?>
<!DOCTYPE html PUBLIC «-//W3C//DTD XHTML 1.0 Transitional//EN» «http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd»>
<head>
<meta http-equiv=»Content-Language» content=»en-us»>
<meta http-equiv=»Content-Type» content=»<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>» />
<meta name=»distribution» content=»global» />
<title><?php the_title(); ?></title><? include «wpoptins-style.php»; ?>
</head>
<body>
<div align=»center»>
<table border=»0″ cellpadding=»15″ cellspacing=»0″ width=»<?=$wpoptins_page_width;?>» id=»wpoptins_border» bgcolor=»<?=$wpoptins_table_color;?>»>
<tr>
<td valign=»top»><?if($wpoptins_warning_text):?>
<div align=»center»>
<table border=»0″ cellpadding=»0″ cellspacing=»0″ width=»600″ id=»warning» height=»92″>
<tr>
<td valign=»top»><div class=»warningText»><?=$wpoptins_warning_text?></div></td>
</tr>
</table>
</div><?endif;?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(__(‘Read more..’));?><div style=»clear:both;»>
<?php endwhile; else: ?>
<p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
<?php endif; ?><?if($wpoptins_add_arrow == ‘checked’):?>
<p align=»center»>
<img src=»<?=$image_url?>/arrowdown.gif» height=»114″ width=»273″>
</p>
<?php endif; ?>
<?if($wpoptins_add_arrows == ‘checked’):?>
<p align=»center»>
<img src=»<?=$image_url?>/arrows.png» height=»277″ width=»107″>
</p>
<?php endif; ?>
<?echo $wpoptins_form_code;?><?
$privacy_id = get_option(‘wpoptins_privacy_id’);
$terms_id = get_option(‘wpoptins_terms_id’);
$disclaimer_id = get_option(‘wpoptins_disclaimer_id’);
$support_id = get_option(‘wpoptins_support_id’);
$contact_id = get_option(‘wpoptins_contact_id’);if($privacy_id OR $terms_id OR $disclaimer_id):?>
<?$privacy_url=get_post_permalink($privacy_id);?>
<?$terms_url=get_post_permalink($terms_id);?>
<?$disclaimer_url=get_post_permalink($disclaimer_id); ?><p align=center><font size=2>
» target=»_blank»>Politica de Privacidad | » target=»_blank»>Terminos de Servicio | » target=»_blank»>Descargo
<?if($support_id):
$support_url=get_post_permalink($support_id);
?>
| » target=»_blank»>Soporte
<?endif;?>
<?if($support_id):
$contact_url=get_post_permalink($contact_id);
?>
| » target=»_blank»>Contacto
<?endif;?></font></p>
<?endif;?></td>
</tr>
</table>
</div>
<p> </p></body>
</html>
Esta es mi web
http://libertagialatina.com/breakcars/ Quisiera tenerla asi pero sin menu. o la plantilla que coloque arriba pero que me permita ver los reproductor de video flash como jwplayer
-