-
-
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
-
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>
-
hola,
hice una pagina template,
estoy tomando las imagenes de los post de una categoria.quisiera saber como puedo hacer para que me la imagen tenga un link a una pagina externa, por ejemplo, sacándolo de «Relación del enlace» o «link rel»
<?php /** * * Template Name: Residentes actuales * * Sólo para la sección historial de actividad o que pasó. * * @package dsframework * @since dsframework 1.0 * */ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <?php $page_num = $paged; if ($pagenum='') $pagenum =1; query_posts('cat=12&showposts=20&paged='.$page_num); ?> <?php while ( have_posts() ) : the_post(); ?> <?php if ( $images = get_posts(array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'numberposts' => -1, 'post_mime_type' => 'image',))) { foreach( $images as $image ) { $attachmenturl=wp_get_attachment_url($image->ID); $attachmentimage=wp_get_attachment_image_src( $image->ID, full ); $imageDescription = apply_filters( 'the_description' , $image->post_content ); $imageTitle = apply_filters( 'the_title' , $image->post_title ); if (!empty($imageDescription)) { echo '<a href="'.$imageDescription .'"><img src="' . $attachmentimage[0] . '" alt="" /></a>'; } else { echo '<img src="' . $attachmentimage[0] . '" alt="" />'; } } } else { echo "No Image"; }?> <div id="extracto-historial"><?php the_excerpt() ?></div> <?php endwhile; ?> <?php wp_pagenavi(); ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
-
¡Hola!
Estoy instalando el tema «Siren» en mi blog pero el header no me convence.
Le quiero meter un logo centrado (que enlace con la home del blog) y que aparezcan debajo los items del menú (y cambiarles el color).
No sé si alguien me puede ayudar con esto, os lo agradecería mucho.
Este es el código del archivo header.php:
<?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=Lato:400,300,700,900′ 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 container-12″>
<header id=»masthead» class=»site-header container-12″ role=»banner»>
<div class=»top cf «><div class=»logo grid-4″>
<h1><img src=»http://s515597928.mialojamiento.es/trial1392652602/wp-content/uploads/2014/02/mrs_roberts_barbie_collector_poppy_parker_lover_logo1.png»</h1>
</div><div id=»botmenu» class=»grid-8″>
<?php wp_nav_menu( array( ‘container_id’ => ‘submenu’, ‘theme_location’ => ‘primary’,’menu_id’=>’web2feel’ ,’menu_class’=>’sfmenu’,’fallback_cb’=> ‘fallbackmenu’ ) ); ?>
</div>
</div></header><!– #masthead .site-header –>
<div id=»main» class=»site-main cf»>
Y este el del archivo style.css:
/*
Theme Name: Siren
Theme URL: http://www.fabthemes.com/siren/
Description: Free WordPress theme released by fabthemes.com
Author: Fabthemes
Author URI: http://www.fabthemes.com
Version: 1.0.0Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
and Blueprint http://www.blueprintcss.org/
*//* =Reset
————————————————————– */html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
border: 0;
font-family: inherit;
font-size: 100%;
font-style: inherit;
font-weight: inherit;
margin: 0;
outline: 0;
padding: 0;
vertical-align: baseline;
}
html {
font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
overflow-y: scroll; /* Keeps page centred in all browsers regardless of content height */
-webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
-ms-text-size-adjust: 100%; /* http://www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
}
body {
background: #fff;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
display: block;
}
ol, ul {
list-style: none;
}
table { /* tables still need ‘cellspacing=»0″‘ in the markup */
border-collapse: separate;
border-spacing: 0;
}
caption, th, td {
font-weight: normal;
text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: «»;
}
blockquote, q {
quotes: «» «»;
}
a:focus {
outline: none;
}
a:hover,
a:active { /* Improves readability when focused and also mouse hovered in all browsers people.opera.com/patrickl/experiments/keyboard/test */
outline: 0;
}
a img {
border: 0;
}/* =Global
———————————————– */body,
button,
input,
select,
textarea {
color: #666666;
font-family: Lato, sans-serif;
font-size: 13px;
font-size: 1.3rem;
line-height: 1.6;
}body{
background:#fff url(http://s515597928.mialojamiento.es/trial1392652602/wp-content/uploads/2014/02/patter-fondo-dorado.jpg) top center repeat;
}/* Headings */
h1,h2,h3,h4,h5,h6 {
clear: both;
margin:0px 0px 10px 0px;
}h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
h1 { font-size: 24px; line-height: 30px; }
h2 { font-size: 22px; line-height: 26px; }
h3 { font-size: 18px; line-height: 24px; }
h4 { font-size: 16px; line-height: 20px; }
h5 { font-size: 14px; line-height: 18px; }
h6 { font-size: 14px; line-height: 18px; }hr {
background-color: #ccc;
border: 0;
height: 1px;
margin-bottom: 1.5em;
}/* Text elements */
p {
margin-bottom: 1.5em;
}
ul, ol {
margin: 0 0 1.5em 3em;
}
ul {
list-style: disc;
}
ol {
list-style: decimal;
}
ul ul, ol ol, ul ol, ol ul {
margin-bottom: 0;
margin-left: 1.5em;
}
dt {
font-weight: bold;
}
dd {
margin: 0 1.5em 1.5em;
}
b, strong {
font-weight: bold;
}
dfn, cite, em, i {
font-style: italic;
}
blockquote {
margin: 0 1.5em;
}
address {
margin: 0 0 1.5em;
}
pre {
background: #eee;
font-family: «Courier 10 Pitch», Courier, monospace;
font-size: 15px;
font-size: 1.5rem;
line-height: 1.6;
margin-bottom: 1.6em;
padding: 1.6em;
overflow: auto;
max-width: 100%;
}
code, kbd, tt, var {
font: 15px Monaco, Consolas, «Andale Mono», «DejaVu Sans Mono», monospace;
}
abbr, acronym {
border-bottom: 1px dotted #666;
cursor: help;
}
mark, ins {
background: #fff9c0;
text-decoration: none;
}
sup,
sub {
font-size: 75%;
height: 0;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
bottom: 1ex;
}
sub {
top: .5ex;
}
small {
font-size: 75%;
}
big {
font-size: 125%;
}
figure {
margin: 0;
}
table {
margin: 0 0 1.5em;
width: 100%;
}
th {
font-weight: bold;
}
button,
input,
select,
textarea {
font-size: 100%; /* Corrects font size not being inherited in all browsers */
margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
vertical-align: baseline; /* Improves appearance and consistency in all browsers */
*vertical-align: middle; /* Improves appearance and consistency in all browsers */
}
button,
input {
line-height: normal; /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */
*overflow: visible; /* Corrects inner spacing displayed oddly in IE6/7 */
}
button,
html input[type=»button»],
input[type=»reset»],
input[type=»submit»] {
border: 1px solid #ccc;
border-color: #ccc #ccc #bbb #ccc;
border-radius: 3px;
background: #fafafa; /* Old browsers */
background: -moz-linear-gradient(top, #fafafa 60%, #e6e6e6 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(60%,#fafafa), color-stop(100%,#e6e6e6)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #fafafa 60%,#e6e6e6 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #fafafa 60%,#e6e6e6 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #fafafa 60%,#e6e6e6 100%); /* IE10+ */
background: linear-gradient(top, #fafafa 60%,#e6e6e6 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’#fafafa’, endColorstr=’#e6e6e6′,GradientType=0 ); /* IE6-9 */
box-shadow: inset 0 2px 1px #fff;
color: rgba(0,0,0,.8);
cursor: pointer; /* Improves usability and consistency of cursor style between image-type ‘input’ and others */
-webkit-appearance: button; /* Corrects inability to style clickable ‘input’ types in iOS */
font-size: 12px;
font-size: 1.2rem;
padding: 8px 20px;;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
button:hover,
html input[type=»button»]:hover,
input[type=»reset»]:hover,
input[type=»submit»]:hover {
background: #f5f5f5; /* Old browsers */
background: -moz-linear-gradient(top, #f5f5f5 60%, #dcdcdc 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(60%,#f5f5f5), color-stop(100%,#dcdcdc)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #f5f5f5 60%,#dcdcdc 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f5f5f5 60%,#dcdcdc 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #f5f5f5 60%,#dcdcdc 100%); /* IE10+ */
background: linear-gradient(top, #f5f5f5 60%,#dcdcdc 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’#f5f5f5′, endColorstr=’#dcdcdc’,GradientType=0 ); /* IE6-9 */
border-color: #bbb #bbb #aaa #bbb;
}
button:focus,
html input[type=»button»]:focus,
input[type=»reset»]:focus,
input[type=»submit»]:focus,
button:active,
html input[type=»button»]:active,
input[type=»reset»]:active,
input[type=»submit»]:active {
border-color: #aaa #bbb #bbb #bbb;
box-shadow: inset 0 2px 3px rgba(0,0,0,.15);
box-shadow: inset 0 2px 2px rgba(0,0,0,.15);
}
input[type=»checkbox»],
input[type=»radio»] {
box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */
padding: 0; /* Addresses excess padding in IE8/9 */
}
input[type=»search»] {
-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
box-sizing: content-box;
}
input[type=»search»]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 http://www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
border: 0;
padding: 0;
}
input[type=text],
input[type=email],
textarea {
color: #666;
border: 1px solid #ccc;
border-radius: 3px;
}
input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
color: #111;
}
input[type=text],
input[type=email] {
padding: 7px 10px;
}
textarea {
overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
padding-left: 8px 10px;
vertical-align: top; /* Improves readability and alignment in all browsers */
width: 98%;
}/* Links */
a {
color: #FC541F;
text-decoration: none;
}
a:visited {
color: #FC541F;
}
a:hover,
a:focus,
a:active {
color: #A05C03;
}/* Alignment */
.alignleft {
display: inline;
float: left;
margin-right: 1.5em;
}
.alignright {
display: inline;
float: right;
margin-left: 1.5em;
}
.aligncenter {
clear: both;
display: block;
margin: 0 auto;
}.clear{
clear:both;
}
/* Text meant only for screen readers */
.assistive-text {
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
}/* Clearfix */
.cf:before,
.cf:after {
content: » «; /* 1 */
display: table; /* 2 */
}.cf:after {
clear: both;
}/* =Content
———————————————– */.sticky {
}
.hentry {
margin: 0 0 2em;
}
.entry-meta {
clear: both;
}
.byline {
display: none;
}
.single .byline,
.group-blog .byline {
display: inline;
}
.entry-content,
.entry-summary {
margin: 1.5em 0 0;
}
.page-links {
clear: both;
margin: 0 0 1.5em;
}/* =Asides
———————————————– */.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
display: none;
}/* =Media
———————————————– */.site-header img,
.entry-content img,
.comment-content img,
.widget img {
max-width: 100%; /* Fluid images for posts, comments, and widgets */
}
.site-header img,
.entry-content img,
img[class*=»align»],
img[class*=»wp-image-«] {
height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
.site-header img,
.entry-content img,
img.size-full {
max-width: 100%;
width: auto; /* Prevent stretching of full-size images with height and width attributes in IE8 */
}
.entry-content img.wp-smiley,
.comment-content img.wp-smiley {
border: none;
margin-bottom: 0;
margin-top: 0;
padding: 0;
}
.wp-caption {
border: 1px solid #ccc;
max-width: 100%;
}
.wp-caption.aligncenter,
.wp-caption.alignleft,
.wp-caption.alignright {
margin-bottom: 1.5em;
}
.wp-caption img {
display: block;
margin: 1.2% auto 0;
max-width: 98%;
}
.wp-caption-text {
text-align: center;
}
.wp-caption .wp-caption-text {
margin: 0.8075em 0;
}
.site-content .gallery {
margin-bottom: 1.5em;
}
.gallery-caption {
}
.site-content .gallery a img {
border: none;
height: auto;
max-width: 90%;
}
.site-content .gallery dd {
margin: 0;
}
.site-content .gallery-columns-4 .gallery-item {
}
.site-content .gallery-columns-4 .gallery-item img {
}/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
max-width: 100%;
}/* =Navigation
———————————————– */.site-content .site-navigation {
margin: 0 0 1.5em;
overflow: hidden;
background:#fafafa;
border:1px solid #ddd;
}
.site-content .nav-previous {
float: left;
width: 50%;
color:#aaa;}
.site-content .nav-next {
float: right;
text-align: right;
width: 50%;
color:#aaa;}
.site-content .nav-previous a , .site-content .nav-next a{
margin:20px;
display:block;
color:#aaa;
font-weight:bold;
}/* =Head
———————————————– */.top{
background:#efefef;
border-bottom:10px solid #FC541F;
border-radius:3px 3px 0px 0px;
}.logo{
padding:25px 0px;
}h1.site-title{
font-weight:900;
text-transform:uppercase;
font-size:32px;
line-height:100%;
margin:10px 10px 0px 10px;
}h1.site-title a:link, h1.site-title a:visited{
font-family: Lato;
color:#fff;
text-decoration: none;
}h2.site-description{
font-size:16px;
margin:0px 10px 0px 10px;}
/* =Top menu
———————————————– */#botmenu{
font-size: 14px;
z-index:100;
position:relative;
}#submenu {
margin: 0px 0px;
padding:0px 0px;}
#submenu ul {
width: auto;
float:left;
list-style: none;
margin: 24px 0px;
padding: 0 0px;
}#submenu li {
float: left;
list-style: none;
margin: 0;
padding: 0;
color: #fff;
font-weight:400;}
#submenu li a {
color: #fff;
display: block;
margin: 0;
padding: 19px 10px 19px 10px;
text-decoration: none;
position: relative;
}#submenu li a:hover, #submenu li a:active, #submenu .current_page_item a {
color: #fff;}
#submenu li a.sf-with-ul {
padding-right: 10px;
}#submenu li ul li a, #submenu li ul li a:link, #submenu li ul li a:visited,
#submenu li ul li ul li a, #submenu li ul li ul li a:link, #submenu li ul li ul li a:visited,
#submenu li ul li ul li ul li a, #submenu li ul li ul li ul li a:link, #submenu li ul li ul li ul li a:visited {
color: #fff;
width: 148px;
margin: 0;
padding: 10px 10px;
border-top:1px solid rgba(255, 255, 255, 0.2);
position: relative;
font-weight:400;}
#submenu ul li ul li:first-child a,#submenu ul li ul li ul li:first-child a,#submenu ul li ul li ul li ul li:first-child a {
border-top:none;}
#submenu li ul li a:hover ,#submenu li ul li ul li a:hover ,#submenu li ul li ul li ul li a:hover {
color: #fff;
}#submenu li ul {
z-index: 9999;
position: absolute;
left: -999em;
height: auto;
width: 170px;
margin: 0px 0px 0px 0px;
padding: 5px 5px;
background:#FC541F;}
#submenu li ul a {
width: 150px;
}#submenu li ul a:hover, #submenu li ul a:active {
}#submenu li ul ul {
margin: -48px 0 0 181px;
}#submenu li:hover ul ul, #submenu li:hover ul ul ul, #submenu li.sfHover ul ul, #submenu li.sfHover ul ul ul {
left: -999em;
}#submenu li:hover ul, #submenu li li:hover ul, #submenu li li li:hover ul, #submenu li.sfHover ul, #submenu li li.sfHover ul, #submenu li li li.sfHover ul {
left: auto;
}#submenu li:hover, #submenu li.sfHover {
position: static;
}select#mobileMenu_fabthemes{
width:100%;
padding:5px 5px;
margin: 10px 0px ;
border:1px solid #000;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
box-shadow: none; ;
background: #444;
color:#ddd;
outline:none;
display: inline-block;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
cursor:pointer;
}/* =Layout
———————————————– */
#page{
margin:30px auto;
}.site{
background:#fff;
margin:0px 0px;
}
#primary,#secondary{
padding:30px 0px;
}/* =Home
———————————————– */.article-box{
padding:10px;
margin:20px 10px 20px 10px;
border:1px solid #ddd;
background:#fafafa;
}.homegallery{
position:relative;}
h2.hpost-title{
position: absolute;
left: 0px;
bottom: 30px;
background:#fafafa;
color:#222;
padding:10px 10px;
margin:0px;
font-weight:300;
text-transform:uppercase;
font-size:20px;
}h2.hpost-title a:link,h2.hpost-title a:visited {
color:#222;
}.home-post{
padding-top:10px;
}.readon{
background:#FC541F;
color:#fff;
padding:5px 10px;
float:right;
}.readon a:link, .readon a:visited{
color:#fff;
}/* =Articles
———————————————– */#content{
margin:0px 10px;
}.entry-header{
padding-left:10px;
}h1.page-title{
font-size:16px;
padding:0px 0px 0px 0px;
}h2.entry-title{
font-size:15px;
font-weight:bold;
color: #111;
margin:10px 0px 0px 0px;
}h2.entry-title a:link, h2.entry-title a:visited{
color:#111;
}h1.entry-title {
padding:0px 0px 0px 0px;
margin:0px 0px;
color:#111;
font-weight:bold;
}h1.entry-title a:link, h1.entry-title a:visited{
color:#111;}
.postimg{
margin-bottom: 20px;
}.arcimg{
float:left;
margin:5px 20px 20px 0px
}
/* =Widgets
———————————————– */.widget {
margin: 0 10px 1.5em 10px;
}h1.widget-title, h3.sidetitl {
font-size: 16px;
padding:0px 20px 10px 0px;
margin:0px;
color:#111;
font-weight: bold;
}.widget ul {
list-style-type: none;
margin: 0px;
padding: 0px 0px;
}.widget li {
list-style-type: none;
margin: 0px;
padding: 0px;
}.widget ul ul {
list-style-type: none;
background-repeat: no-repeat;
margin: 0px;
padding: 0px;
}.widget ul li {
list-style-type: none;
margin: 0px;
margin: 0px 0px;
color: #777;
}.widget ul li a:link,.widget ul li a:visited {
color: #777;
text-decoration: none;
}.widget ul li a:hover{
color:#444;
}.widget.widget_categories ul li,.widget.widget_pages ul li,.widget.widget_archive ul li,.widget.widget_links ul li,.widget.widget_meta ul li {
border-bottom: 1px solid #eee;
padding: 5px 0px;
}.widget.widget_recent_entries ul li {
padding: 5px 0px;
border-bottom: 1px solid #eee;
}ul#recentcomments li.recentcomments {
border-bottom: 1px solid #eee;
padding: 5px 0;
}.widget .textwidget p {
padding: 0px 0px;
}.squarebanner{
}
.squarebanner ul{
margin:0px 0px 0px 0px;
padding:0px 0px 10px 0px !important;}
.squarebanner ul li{
margin:10px 20px 5px 0px;
list-style:none;
float:left;
}li.rbanner{
margin-right:0px!important;
}/* Search form */
input#s{
width:90%;
}input#searchsubmit{
display:none;
}/* COMMENTS */
#comments {
margin: 20px 0px 20px 0px;
padding: 0px 0px;}
h2.comments-title {
padding: 0px 0px 0px 40px ;
font-size: 16px;
line-height: 30px;
margin: 0px 0px 30px 0px;
color: #111;
font-weight:700;
text-transform: uppercase;
display:block;
cursor: pointer;
background:url(../Mis%20documentos/images/arrowdown.png) no-repeat;}
h2.active{
background:url(../Mis%20documentos/images/arrowup.png) no-repeat;}
#comments ol.commentlist {
clear: both;
overflow: hidden;
list-style: none;
margin: 0;
}
.space{
height:30px;
display:block;
}
#comments ol.commentlist li.comment,#comments ol.commentlist li.pingback {
margin: 0px 0px;
padding: 0px 0px;}
cite.fn {
color: #fff;
font-style:normal;
font-weight:bold;
font-size:13px;
}cite.fn a:link,cite.fn a:visited {
color:#fff;
}
span.says{
display:none;
}ol.commentlist li .comment-author .avatar {
margin: 0px 10px 0px 0px;
float:left;
}ol.commentlist li .comment-meta .commentmetadata {
color: #000;}
ol.commentlist li .comment-meta a {
color: #ddd;
text-decoration: none!important;
}footer.cometa{
background: #292929;
padding:10px 10px;
}
.comment-content{border: 1px solid #ddd;
}
ol.commentlist li p {margin: 10px 10px;
padding: 10px 10px;
}ol.commentlist li .reply {
float:right;
background: #FC541F;
color: #fff;
font-size: 12px;
padding:3px 10px;
}ol.commentlist li .reply a {
color:#fff;
}ol.commentlist li ul.children {
list-style: none;
text-indent: 0;
margin: 0px 0 0 0px 50px;
}.comment-nav {
height: 20px;
padding: 5px;
}.comment-nav a:link,.comment-nav a:visited {
color: #777;
}#respond {
margin: 30px 0;}
#respond h3 {
font-size: 16px;
font-weight: 700;
color: #222;
padding: 5px 0px;
margin:0px 0px;
}#commentform {
padding: 0px 0px;
}#commentform p {
color: #777;
margin: 5px 0;
}.form-allowed-tags{
font-size:13px;
}#respond label {
display:inline;
color: #777;
padding: 5px 0;
}#respond input {
background: #fff;
border: 1px solid #ddd;
color: #777;
margin: 0 10px 10px 0;
padding: 5px;
}#commentform input {
width: 50%;
display:block;
margin-top:5px;
}#respond input#submit {
width:130px;
background:#eee;
color: #555;
cursor: pointer;
margin: 10px 0;
padding: 5px 10px;
border: 1px solid #bbb;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}textarea#comment {
display:block;
margin-top:5px;
background: #fff;
border: 1px solid #ddd;
width: 70%;
color: #333;
margin: 5px 0 0;
padding: 10px 10px;
}.form-allowed-tags{
padding:20px 0px;}
ol.commentlist li .comment-meta,#respond label small {
font-size: 10px;
}ol.commentlist li ul.children li.depth-2,ol.commentlist li ul.children li.depth-3,ol.commentlist li ul.children li.depth-4,ol.commentlist li ul.children li.depth-5 {
margin: 0 0 0 50px;
}/* Footer-widget */
#bottom{
background: #292929;
}#bottom ul{
margin:0px;
padding:0px;
}h3.bothead{
font-size: 16px;
margin-bottom: 20px;
color:#fff;
font-weight:bold;
}.botwid{
padding:30px 10px;
color:#d8d8d8;
list-style:none;}
.botwid ul {
list-style-type: none;
margin: 0px;
padding: 0px 0px 0px 0px ;}
.botwid li{
list-style-type: none;
margin: 0 ;
padding: 0px 0px;
border-bottom:1px solid #444;
}
.botwid ul ul {
list-style-type: none;
margin: 0;
padding: 0px 0px 0px 0px;
background-repeat:no-repeat;
}.botwid ul ul ul{
list-style-type: none;
margin: 0;
padding: 0;
border:0;
}.botwid ul ul ul ul{
list-style-type: none;
margin: 0;
padding: 0;
border:0;}
.botwid ul li {
height:100%;
line-height:18px;
clear: left;
list-style-type: none;
}.botwid ul li a:link, .botwid ul li a:visited {
color: #999;
text-decoration: none;
padding: 7px 0px 7px 0px;
display:block;}
.botwid ul li a:hover{
color: #fff;
}.botwid p{
padding: 7px 0px;
margin:0;
line-height:150%;
color: #bbb;
}/* Footer */
.site-footer{
background:#272727;
padding:25px;
text-align:center;
color:#eee;
}.fcred{
color:#eee;
font-size:12px;}
.fcred a:link, .fcred a:visited{
color:#eee;
}
-
buenas no encuentro la manera de cambiar el codigo de color del submenu desplegable y necesito cambiarlo urgentemente para un cliente, pero por defecto biene en azul y en la plantilla no viene la opcion de cambiarlo, asi que me puse manos a la obra buscando concretamente ese codigo en «style.css y en header.php» pero no consigo dar con el y me estoy volviendo un poco loco. Para ayudar un poco mas a los que me ayuden…aqui les dejo mas informacion. Espero pronto una respuesta y mucha gracias.
————————————————————————
NOMBRE DE LA PLANTILLA: Bootstrap Parallax, o Twitter Bootstrap ParallaxCODIGO COMPLETO DE STYLE.CSS:
————————————————————————
/*
Theme Name: Bootstrap Parallax
Theme URI: http://braginteractive.com
Description: Parallax Twitter Bootstrap WordPress ThemeAuthor: Brag Interactive
Author URI: http://braginteractive.com
Version: 2.3.1
Tags: bootstrap, twitterCopyright (C) 2011-2013 Brag Interactive
License: GNU General Public License, version 3 (GPLv3)
License URI: license.txtCREATE CHILD THEME.
See: http://codex.wordpress.org/Child_Themes
*/#intro {
background: url(images/intro.png) 50% 0 fixed;
height: auto;
margin: 0 auto;
width: 100%;
position: relative;
box-shadow: 0 0 50px rgba(0,0,0,0.8);
padding: 100px 0;
}
#middle {
background: url(images/home.jpg) 50% 0 fixed;
height: auto;
margin: 0 auto;
width: 100%;
position: relative;
box-shadow: 0 0 50px rgba(0,0,0,0.8);
padding: 200px 0;
}
#footer {
background: url(images/about.png) 50% 0 fixed;
height: auto;
margin: 0 auto;
width: 100%;
position: relative;
box-shadow: 0 0 50px rgba(0,0,0,0.8);
padding: 100px 0;
color: #fff;
}/* Non-essential demo stuff */
.hero-unit {
background-color: #fff;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.media-object { width: 64px; height: 64px; padding-bottom: 30px }/* =Horizontal Rule
————————————————————– */
hr {
background:#ddd;
border:none;
clear:both;
color:#ddd;
float:none;
height:.1em;
margin:0 0 1.45em;
width:100%;
}hr.space {
background:#fff;
color:#fff;
}hr.blog-break{
margin: 55px 0;
}/* =Base
————————————————————– */
html {}
body {
}/* =Typography
————————————————————– */
p {
word-wrap:break-word;
}cite, em, dfn {
font-style:italic;
}code, kbd, samp, pre, tt, var {
font-family:Consolas, «Bitstream Vera Sans Mono», «Courier New», Courier, monospace !important;
font-style:normal;
}strong {
font-weight:700;
}pre {
background:#fff;
margin-top:20px;
max-width:98%;
padding-left:1em;
height:auto;
}del {
color:#555;
text-decoration:line-through;
}ins, dfn {
border-bottom:1px solid #ccc;
}small, sup, sub {
font-size:85%;
}abbr, acronym {
font-size:85%;
letter-spacing:.1em;
text-transform:uppercase;
}a abbr, a acronym {
border:none;
}abbr[title], acronym[title], dfn[title] {
border-bottom:1px solid #ccc;
cursor:help;
}sup {
vertical-align:super;
}sub {
vertical-align:sub;
}img {
height:auto;
max-width:100%;
}/* =Forms
————————————————————– */
fieldset {
margin:0 0 1.5em;
padding:1em 2em;
}legend {
padding:2px 5px;
}label {
display:block;
font-weight:700;
padding:2px 0;
}select {
height:auto;
width:70%;
}textarea, .area {
height:auto;
overflow:auto;
margin:0;
outline:none;
padding:8px 10px;
width:100%;
}input, select {
cursor:pointer;
}input:focus, textarea:focus, area:focus {
background:#fff;
}input[type=’text’], input[type=’password’] {
cursor:text;
}span.error {
color: #B94A48;
}.form-search input {
padding-right: 14px;
padding-right: 4px 9;
padding-left: 14px;
padding-left: 4px 9;
padding: 4px 6px;
}.form-search .btn {
margin: 0;
}/* =Tables
————————————————————– */
table {
/*border-left:1px solid #ccc;*/
/*border-top:1px solid #ccc;*/
width:100%;
}th, td {
/*border-bottom:1px solid #ddd;*/
/*border-right:1px solid #ccc;*/
}/* =Lists
————————————————————– */
ul {
list-style-type:disc;
}ul ul {
list-style-type:square;
}ul ul ul {
list-style-type:circle;
}ol {
line-height:22px;
list-style-position:outside;
list-style-type:decimal;
}dt {
font-weight:400;
}/* =Margins & Paddings
————————————————————– */
blockquote:first-child {
margin:.8em 0;
}hr, p, ul, ol, dl, pre, blockquote, address, table, form {
}
h1 {
}
h2 {
}
h3 {
}
h4 {
}
h5 {
}
h6 {
}
th, td {
}
caption {
padding-bottom:.8em;
}blockquote {
}
fieldset {
}
legend {
padding-left:.8em;
padding-right:.8em;
}legend+* {
margin-top:1em;
}textarea, input {
}
select {
}
option {
padding:0 .4em;
}a {
}
dt {
}
ul {
}
ol {
}
ol ol, ul ol {
}
form div {
}
/* =Globals
————————————————————– */
#container {
margin:0 auto;
max-width:960px;
padding:0px 25px;
}#wrapper {
}
#header {
margin:0;
}#footer {
}
/* =Container IE Fixes (Modernizr)
————————————————————– */
.ie7 #container {
max-width:961px;
}/* =Header
————————————————————– */
#header #logo {
float:left;
margin:0;
}#header #logo .site-name {
display:block;
font-size:2em;
padding-top:20px;
}#header #logo .site-name a {
font-weight:700;
}.navbar-fixed-top {
margin-bottom: 18px !important;
}.home .navbar-fixed-top {
margin-bottom: 10 !important;
}/* =Content
————————————————————– */
#content {
margin-bottom:100px;
}#content-archive {
margin-bottom:100px;
}#content-blog {
margin-bottom:100px;
}#content-images {
margin-bottom:100px;
}#content-full {
margin-bottom:100px;
}#content-sitemap {
margin-bottom:100px;
}#content-sitemap a {
font-size:12px;
}#content .sticky {
clear:both;
}#content .sticky p {
}#content .bypostauthor {
}/* =Author Meta (Author’s Box)
————————————————————– */
#author-meta {
background:#f9f9f9;
border:1px solid #d6d6d6;
clear:both;
display:block;
margin-bottom:20px;
overflow:hidden;
}#author-meta img {
float:left;
padding:10px;
}#author-meta p {
margin-top:5px;
padding:0 5px 0 0;
}#author-meta .about-author {
font-weight:700;
margin:10px 0 0 0;
}/* =Post
————————————————————– */
.comments-link {
font-size:12px;
}#respond .form-allowed-tags {
display:none !important;
}#cancel-comment-reply-link {
color:#900;
}.post-data {
clear:both;
font-size:11px;
margin-top:20px;
}.post-entry {
clear:both;
}.post-meta {
clear:both;
color:#9f9f9f;
font-size:13px;
margin-bottom:10px;
}.post-edit {
clear:both;
display:block;
font-size:12px;
margin:1.5em 0;
}.post-search-terms {
clear:both;
}.read-more {
clear:both;
}.attachment-entry {
clear:both;
text-align:center;
}/* =Symbols
————————————————————– */
.ellipsis {
color:#aaa;
font-size:18px;
margin-left:5px;
}/* =Widgets
————————————————————– */
.widget-wrapper {}
.widget-wrapper-left {
}
#widgets {
}
.home #widgets {
}#widgets a {
display:inline-block;
text-decoration:none;
}#widgets ul, #widgets .textwidget, #widgets .tagcloud, #widgets #searchform, #widgets #calendar_wrap {
font-size:13px;
margin:0 0 20px;
padding:10px 0 20px 0;
list-style: none;
}.home #widgets ul, .home #widgets .textwidget, .home #widgets .tagcloud, .home #widgets #searchform, .home #widgets #calendar_wrap {
border-top:none;
font-size:13px;
margin:0 0 20px;
padding:20px;
border: none;
}#widgets ul li {
margin-left:15px;
}#widgets ul li a {
display:inline;
text-decoration:none;
}#widgets .widget-title img {
float:right;
height:11px;
position:relative;
top:4px;
width:11px;
}#widgets .rss-date {
line-height:18px;
padding:6px 12px;
}#widgets .rssSummary {
padding:10px;
}#widgets cite {
font-style:normal;
line-height:18px;
padding:6px 12px;
}#widgets .textwidget, #widgets .tagcloud {
display:block;
line-height:1.5em;
margin:0 0 20px;
word-wrap:break-word;
}#widgets .textwidget a {
}
#widgets ul .children {
border:none;
margin:0;
padding:0;
}#widgets .author {
font-weight:700;
padding-top:4px;
}.widget_archive select, #cat {
display:block;
margin:20px 15px 0;
}/* =Titles
————————————————————– */
.widget-title, .widget-title-home h3 {
display:block;
font-size:20px;
font-weight:700;
line-height:23px;
margin:0;
padding:20px 0 0 0;
text-align:left;
}.home .widget-title-home h3 {
border-bottom:none;
display:block;
font-size:24px;
font-weight:700;
line-height:23px;
margin:0;
padding:20px 20px 0 20px;
text-align:left;
border: none;
}.widget-title a {
border-bottom:none;
padding:0!important;
}.title-404 {
color:#933;
}/* =Pagination (pages)
————————————————————– */
.pagination {
clear:both;
display:block;
font-size:16px;
font-weight:700;
margin:10px 0;
padding:5px 0;
}.pagination a {
text-decoration:none;
}.pagination a:hover, .pagination a:active {
}/* =Breadcrumb Lists
————————————————————– */
.breadcrumb-list {
font-size:12px;
padding:40px 0 0 0;
}/* =Comments
————————————————————– */
#commentform {
margin:0;
}.commentlist {
list-style:none;
margin:0;
padding:0;
}.commentlist ol {
list-style:decimal;
}.commentlist li {
-webkit-border-radius:4px;
-moz-border-radius:4px;border-radius:4px;
margin:0;
padding:1em;
}.commentlist li p {
font-size:14px;
}.commentlist p {
margin:0;
}.reply {
margin:10px 0;
}.commentlist li cite {
color:#111;
font-size:1.1em;
font-style:normal;
font-weight:400;
}.commentlist li.alt {
}
.commentlist .children {
list-style:none;
margin:0;
}.commentlist .avatar {
-webkit-border-radius:2px;
-moz-border-radius:2px;
border-radius:2px;
float:left;
margin-right:10px;
padding:0;
vertical-align:middle;
}.commentlist .children .avatar {
height:33px;
width:33px;
}.comment-author .fn {
}.comment-author .says {
color:#999;
}.comment-body .comment-meta {
color:#999;
display:inline-block;
margin:0;
padding:0;
text-align:left;
}.comment-body {
clear:both;
}.comment-body p {
clear:both;
padding-top:10px;
}.comment-body .reply {
}.pingback, .trackback {
list-style:none;
margin:20px 0;
}.pingback cite, .trackback cite {
font-style:normal;
}#comments, #pings {
text-align:left;
}#respond {
-moz-border-radius:2px;
-webkit-border-radius:2px;
border:1px solid #ccc;
border-bottom-color:#aaa;
border-radius:2px;
clear:both;
padding:10px 20px 50px;
}#respond label {
display:inline;
}#respond .comment-form-author input, #respond .comment-form-email input, #respond .comment-form-url input, #respond .comment-form-comment textarea {
display:block;
}.nocomments {
color:#999;
font-size:.9em;
text-align:center;
}#commentform input.error, #commentform textarea.error {
background-color:#f6cbca;
}#commentform div.error, #commentform label.error {
color:#cb2026;
}#commentform div.errorlabels label {
display:block;
}#comment {
width: 90%;
}/* =WordPress Core
————————————————————– */
.alignnone {
margin:5px 20px 20px 0;
}.aligncenter, div.aligncenter {
display:block;
margin:5px auto;
}.alignright {
float:right;
margin:5px 0 20px 20px;
}.alignleft {
float:left;
margin:5px 20px 20px 0;
}.aligncenter {
display:block;
margin:5px auto;
}a img.alignright {
float:right;
margin:5px 0 20px 20px;
}a img.alignnone {
margin:5px 20px 20px 0;
}a img.alignleft {
float:left;
margin:5px 20px 20px 0;
}a img.aligncenter {
display:block;
margin-left:auto;
margin-right:auto;
}.wp-caption {
background:#fff;
border:1px solid #f0f0f0;
max-width:96%;
padding:5px 3px 10px;
text-align:center;
}.wp-caption.alignnone {
margin:5px 20px 20px 0;
}.wp-caption.alignleft {
margin:5px 20px 20px 0;
}.wp-caption.alignright {
margin:5px 0 20px 20px;
}.wp-caption img {
border:0 none;
height:auto;
margin:0;
max-width:98.5%;
padding:0;
width:auto;
}.wp-caption p.wp-caption-text {
font-size:11px;
line-height:17px;
margin:0;
padding:0 4px 5px;
}img.wp-smiley {
vertical-align:middle;
}/* =Gallery
————————————————————– */
.gallery {
margin:0 auto 18px;
}.gallery .gallery-item {
float:left;
margin-top:0;
text-align:center;
width:155px;
}.gallery img {
border:1px solid #ddd;
}.gallery .gallery-caption {
font-size:12px;
margin:0 0 12px;
}.gallery dl {
margin:0;
}.gallery br+br {
display:none;
}.attachment-gallery img {
background:#fff;
border:1px solid #f0f0f0;
display:block;
height:auto;
margin:15px auto;
max-width:96%;
padding:5px;
width:auto;
}.gallery-meta .full-size, .gallery-meta .aperture, .gallery-meta .focal-length, .gallery-meta .iso, .gallery-meta .shutter, .gallery-meta .camera {
display:block;
}/* =Post Thumbnails
————————————————————– */
img.wp-post-image, img.attachment-thumbnail, img.attachment-medium, img.attachment-large, img.attachment-full {
display:block;
margin:15px auto;
width:auto;
}/* =Footer
————————————————————– */
#footer {
}#footer a {
}#footer a:hover {
}.scroll-top {
text-align:center;
}.scroll-top a:hover{
text-decoration: none;
}.copyright {
text-align:left;
}.powered {
text-align:right;
float: right;
}/* =Social Icons
————————————————————– */
.social-icons {
line-height:22px;
margin:2px 0 0 0;
padding: 0 0 30px 0;
text-align:right;
font-size: 32px;
}#footer .social-icons{
text-align: left;
}.social-icons a, #header .social-icons a {
text-decoration: none;
padding: 0 3px;
}.social-icons [class^=»icon-«], .social-icons [class*=» icon-«] {
width: 30px;
}#header .social-icons {
line-height:normal;
margin:3px 0 0 0;
font-size: 32px;
padding: 0;
}/* =Alignments Extras
————————————————————– */
.left {
float:left;
}.right {
float:right;
}.center {
text-align:center;
}/* =Clearfix
————————————————————– */
.clearfix:after, #container:after {
clear:both;
content:»020″;
display:block;
height:0;
max-height:0;
overflow:hidden;
visibility:hidden;
}.clearfix, #container {
display:inline-block;
}*html .clearfix, *html #container {
height:1%;
}.clearfix, #container {
display:block;
}.clear {
clear:both;
}/* =Begin bidirectionality settings (do not change)
————————————————————– */
BDO[DIR=»ltr»] {
direction:ltr;
unicode-bidi:bidi-override;
}BDO[DIR=»rtl»] {
direction:rtl;
unicode-bidi:bidi-override;
}[DIR=»ltr»] {
direction:ltr;
unicode-bidi:embed;
}[DIR=»rtl»] {
direction:rtl;
unicode-bidi:embed;
}/* =Media Print
————————————————————– */
@media print {h1 {
page-break-before:always;
}h1, h2, h3, h4, h5, h6 {
page-break-after:avoid;
}ul, ol, dl {
page-break-before:avoid;
}
}/*»The last 29 days of the month are the hardest.»- Nikola Tesla*/
.more-link{
float: right;
margin:10px 0;
}strong.search-excerpt { background: yellow; }
/* ——- Fluid Columns ——- */
.one_half{ width:48%; }
.one_third{ width:30.66%; }
.two_third{ width:65.33%; }
.one_fourth{ width:22%; }
.three_fourth{ width:74%; }
.one_fifth{ width:16.8%; }
.two_fifth{ width:37.6%; }
.three_fifth{ width:58.4%; }
.four_fifth{ width:67.2%; }
.one_sixth{ width:13.33%; }
.five_sixth{ width:82.67%; }
.one_half,.one_third,.two_third,.three_fourth,.one_fourth,.one_fifth,.two_fifth,.three_fifth,.four_fifth,.one_sixth,.five_sixth{ position:relative; margin-right:4%; float:left; }
.last{ margin-right:0 !important; clear:right; }
.clearboth {clear:both;display:block;font-size:0;height:0;line-height:0;width:100%;}/* =Media Queries
If you’re working on a Child Theme, make sure that all
media queries are included in your style.css
————————————————————– */
@media screen and (max-width: 980px) {body {
}#header .social-icons {
text-align:left;
}.widget-wrapper {
padding-left:0;
}.widget-wrapper-left {
padding-left:0;
}#footer{
}
.copyright {
text-align:center;
}.powered {
text-align:center;
}
}@media (max-width: 767px) {
#intro, #middle, #footer {
margin-right: -20px;
margin-left: -20px;
padding: 0 20px;
}
}@media screen and (max-width: 650px) {
body {
}#header #logo {
float:none;
text-align:center;
}.content-right, .sidebar-content {
float:none;
}#hero-image .fluid-width-video-wrapper {
margin:20px 0 0 0;
}#hero-image {
margin:20px 10px;
}.hero-unit h1 {
font-size: 35px !important;
}.menu li, .top-menu, .footer-menu li, .sub-header-menu li {
float:none;
text-align:center;
}.widget-wrapper {
padding-left:0;
}.widget-wrapper-left {
padding-left:0;
}#footer {
text-align:center;}
#footer .social-icons {
text-align:center;
}.copyright {
text-align:center;
}.powered {
text-align:center;
}
}@media screen and (max-width: 480px) {
body {
}.widget-wrapper {
padding-left:0;
}.widget-wrapper-left {
padding-left:0;
}#footer {
text-align:center;
}#footer .social-icons {
text-align:center;
}
.copyright {
text-align:center;}
.powered {
text-align:center;}
}———————————————————————–
CODIGO COMPLETO DE HEADER.PHP
———————————————————————–
<?php
/**
* Header Template
*
*
* @file header.php
* @package Bootstrap Parallax
* @author Brad Williams
* @copyright 2011 – 2013 Brag Interactive
* @license license.txt
* @version Release: 2.3.1
* @link http://codex.wordpress.org/Theme_Development#Document_Head_.28header.php.29
* @since available since Release 1.0
*/
?>
<!doctype html>
<!–[if lt IE 7 ]> <html class=»no-js ie6″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 7 ]> <html class=»no-js ie7″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 8 ]> <html class=»no-js ie8″ <?php language_attributes(); ?>> <![endif]–>
<!–[if (gte IE 9)|!(IE)]><!–> <html class=»no-js» <?php language_attributes(); ?>> <!–<![endif]–>
<head><meta charset=»<?php bloginfo(‘charset’); ?>» />
<meta name=»viewport» content=»width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0″>
<meta http-equiv=»X-UA-Compatible» content=»IE=edge,chrome=1″ /><title><?php wp_title(‘|’, true, ‘right’); ?><?php bloginfo(‘name’); ?></title>
<link rel=»profile» href=»http://gmpg.org/xfn/11″ />
<link rel=»pingback» href=»<?php bloginfo(‘pingback_url’); ?>» /><!–[if IE 7]>
<link rel=»stylesheet» href=»<?php get_template_directory_uri();?>/css/font-awesome-ie7.min.css»>
<![endif]–><?php wp_head(); ?>
</head>
</body>
<body <?php body_class(); ?>><?php responsive_container(); // before container hook ?>
<?php responsive_header(); // before header hook ?>
<div id=»header»><?php responsive_in_header(); // header hook ?>
<?php $nav_color = of_get_option(‘nav_color’);?>
<div class=»navbar navbar-fixed-top <?php if($nav_color ==’inverse’) { echo ‘navbar-inverse’; } ?>»>
<div class=»navbar-inner»>
<div class=»container»>
<span class=»icon-bar»></span>
<span class=»icon-bar»></span>
<span class=»icon-bar»></span>
<?php if ( of_get_option(‘logo_upload’) ) { ?>
<div id=»logo»>/» title=»<?php bloginfo( ‘name’ ) ?>» rel=»homepage»>
<img src=»<?php echo of_get_option(‘logo_upload’); ?>» alt=»<?php bloginfo( ‘name’ ) ?>»/>
</div><!– end of #logo –>
<?php } else { ?>
<?php if (is_front_page()) { ?>
/» title=»<?php bloginfo( ‘name’ ) ?>» rel=»homepage»><?php bloginfo( ‘name’ ) ?>
<?php } else { ?>
/» title=»<?php bloginfo( ‘name’ ) ?>» rel=»homepage»><?php bloginfo( ‘name’ ) ?>
<?php } } ?><div class=»nav-collapse collapse»>
<?php$args = array(
‘theme_location’ => ‘top-bar’,
‘depth’ => 2,
‘container’ => false,
‘menu_class’ => ‘nav’,
‘walker’ => new Bootstrap_Walker_Nav_Menu()
);wp_nav_menu($args);
?>
<?php if(of_get_option(‘search_bar’, ‘1’)) {?>
<form class=»navbar-search pull-right» role=»search» method=»get» id=»searchform» action=»<?php echo home_url( ‘/’ ); ?>»>
<input name=»s» id=»s» type=»text» class=»search-query» placeholder=»<?php _e(‘Search’,’responsive’); ?>»>
</form>
<?php } ?><?php if(of_get_option(‘header_social’, ‘1’)) {?>
<?php
// First let’s check if any of this was setecho ‘<div class=»social-icons nav pull-right»>’;
if (of_get_option(‘twitter_url’)) echo ‘‘
.'<i class=»icon-twitter-sign»></i>’
.’‘;if (of_get_option(‘fb_url’)) echo ‘‘
.'<i class=»icon-facebook-sign»></i>’
.’‘;if (of_get_option(‘pinterest_url’)) echo ‘‘
.'<i class=»icon-pinterest-sign»></i>’
.’‘;if (of_get_option(‘linkedin_url’)) echo ‘‘
.'<i class=»icon-linkedin-sign»></i>’
.’‘;if (of_get_option(‘google_url’)) echo ‘‘
.'<i class=»icon-google-plus-sign»></i>’
.’‘;if (of_get_option(‘github_url’)) echo ‘‘
.'<i class=»icon-github-sign»></i>’
.’‘;if (of_get_option(‘rss_url’)) echo ‘‘
.'<i class=»icon-rss»></i>’
.’‘;echo ‘</div><!– end of .social-icons –>’;
?>
<?php } ?>
</div></div>
</div>
</div></div><!– end of #header –>
<?php responsive_header_end(); // after header hook ?><?php responsive_wrapper(); // before wrapper ?>
<div id=»wrapper» class=»clearfix»>
<?php responsive_in_wrapper(); // wrapper hook ?>
<body>———————————————————————
-