{"id":26175,"date":"2014-09-18T16:48:11","date_gmt":"2014-09-18T16:48:11","guid":{"rendered":"https:\/\/es.wordpress.org\/support\/topic\/oxygen-template-nuevo-con-slider-pero-sin-sidebar\/"},"modified":"2016-08-06T00:31:04","modified_gmt":"2016-08-06T00:31:04","slug":"oxygen-template-nuevo-con-slider-pero-sin-sidebar","status":"closed","type":"topic","link":"https:\/\/es.wordpress.org\/support\/topic\/oxygen-template-nuevo-con-slider-pero-sin-sidebar\/","title":{"rendered":"Oxygen: template nuevo con slider pero sin sidebar"},"content":{"rendered":"<p>Hola, a ver si pod\u00e9is ayudarme&#8230;<\/p>\n<p>Quiero que mi home aparezca con el slider, pero SIN sidebar alguno.<\/p>\n<p>1. Me he creado un tema hijo que va bien.<\/p>\n<p>2. He creado una nueva template de fullwidth y le he insertado el slider: okedi \u00a1funciona! (y adem\u00e1s con css en el tema hijo consigo que el slider sea 100% de ancho)<\/p>\n<p>Pero el problema es que me aparece el sidebar secundario por ah\u00ed abajo&#8230; y me fastidia un poco, la verdad&#8230;<\/p>\n<p>Comparando c\u00f3digos generados de una fullwidth y de mi nueva fullwidth me da que el problema est\u00e1 en esta sentencia:<br \/>\n<code>&lt;?php do_atomic( &#039;after_content&#039; ); \/\/ oxygen_after_content ?&gt;<\/code><\/p>\n<p>Pero por mas que lo intento (yo soy de cabezazos&#8230;) no encuentro por donde puede estar esto&#8230;<\/p>\n<p>Agradecer\u00eda cualquier ayuda. Os pongo el c\u00f3digo de la nueva template:<\/p>\n<pre><code>&lt;?php\n\/**\n *  Template Name: Full Width with slider\n *\n * Full width page template with no sidebar, but with slider.\n *\n * @package Oxygen\n * @subpackage Template\n *\/\n\nget_header(); \/\/ Loads the header.php template. ?&gt;\n\n\t&lt;?php do_atomic( &#039;before_content&#039; ); \/\/ oxygen_before_content ?&gt;\n\n\t&lt;?php get_template_part( &#039;featured-content&#039; ); \/\/ Loads the featured-content.php template. ?&gt;\n\n\t&lt;div class=&quot;content-wrap&quot;&gt;\t\n\n\t\t&lt;div id=&quot;content&quot;&gt;\n\n\t\t\t&lt;?php do_atomic( &#039;open_content&#039; ); \/\/ oxygen_open_content ?&gt;\n\n\t\t\t&lt;div class=&quot;hfeed&quot;&gt;\n\n\t\t\t\t&lt;?php if ( have_posts() ) : ?&gt;\n\n\t\t\t\t\t&lt;?php while ( have_posts() ) : the_post(); ?&gt;\n\n\t\t\t\t\t\t&lt;?php do_atomic( &#039;before_entry&#039; ); \/\/ oxygen_before_entry ?&gt;\n\n\t\t\t\t\t\t&lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; class=&quot;&lt;?php hybrid_entry_class(); ?&gt;&quot;&gt;\n\n\t\t\t\t\t\t\t&lt;?php do_atomic( &#039;open_entry&#039; ); \/\/ oxygen_open_entry ?&gt;\n\n\t\t\t\t\t\t\t&lt;?php echo apply_atomic_shortcode( &#039;entry_title&#039;, &#039;[entry-title permalink=&quot;0&quot;]&#039; ); ?&gt;\n\n\t\t\t\t\t\t\t&lt;div class=&quot;entry-content&quot;&gt;\n\n\t\t\t\t\t\t\t\t&lt;?php the_content( __( &#039;Continue reading &lt;span class=&quot;meta-nav&quot;&gt;\u2192&lt;\/span&gt;&#039;, &#039;oxygen&#039; ) ); ?&gt;\n\n\t\t\t\t\t\t\t\t&lt;?php wp_link_pages( array( &#039;before&#039; =&gt; &#039;&lt;p class=&quot;page-links&quot;&gt;&#039; . __( &#039;Pages:&#039;, &#039;oxygen&#039; ), &#039;after&#039; =&gt; &#039;&lt;\/p&gt;&#039; ) ); ?&gt;\n\n\t\t\t\t\t\t\t&lt;\/div&gt;&lt;!-- .entry-content --&gt;\n\n\t\t\t\t\t\t\t&lt;?php echo apply_atomic_shortcode( &#039;entry_meta&#039;, &#039;&lt;div class=&quot;entry-meta&quot;&gt;[entry-edit-link]&lt;\/div&gt;&#039; ); ?&gt;\n\n\t\t\t\t\t\t\t&lt;?php do_atomic( &#039;close_entry&#039; ); \/\/ oxygen_close_entry ?&gt;\n\n\t\t\t\t\t\t&lt;\/div&gt;&lt;!-- .hentry --&gt;\n\n\t\t\t\t\t\t&lt;?php do_atomic( &#039;after_entry&#039; ); \/\/ oxygen_after_entry ?&gt;\n\n\t\t\t\t\t\t&lt;?php do_atomic( &#039;after_singular&#039; ); \/\/ oxygen_after_singular ?&gt;\n\n\t\t\t\t\t&lt;?php endwhile; ?&gt;\n\n\t\t\t\t&lt;?php endif; ?&gt;\n\n\t\t\t&lt;\/div&gt;&lt;!-- .hfeed --&gt;\n\n\t\t\t&lt;?php do_atomic( &#039;close_content&#039; ); \/\/ oxygen_close_content ?&gt;\n\n\t\t&lt;\/div&gt;&lt;!-- #content --&gt;\n\n\t\t&lt;?php do_atomic( &#039;after_content&#039; ); \/\/ oxygen_after_content ?&gt;\n\n&lt;?php get_footer(); \/\/ Loads the footer.php template. ?&gt;<\/code><\/pre>\n<p>El css que he a\u00f1adido:<\/p>\n<pre><code>.breadcrumbs {\ndisplay: none;\n}\n\n.featured-wrapper {\nfloat: left;\nwidth: 100%;\n}\n.content-wrap {\nfloat: left;\nwidth: 100%;\n}\n#content {\nwidth: 100%;\n}<\/code><\/pre>\n<p>y las funciones que tambi\u00e9n he a\u00f1adido:<\/p>\n<pre><code>&lt;?php\n\n\/**\n * Disables sidebars if viewing a fullwidth page with slider.\n *\n *\/\nfunction oxygen_no_sidebars( $sidebars_widgets ) {\n\n\tglobal $wp_query;\n\n\t    if ( is_page_template( &#039;page-template-fullwidth-with-slider.php&#039; ) ) {\n\t\t    $sidebars_widgets[&#039;primary&#039;] = none;\n\t\t\t$sidebars_widgets[&#039;secondary&#039;] = none;\n\t    }\n\n\treturn $sidebars_widgets;\n}\n\n?&gt;<\/code><\/pre>\n<p>Si alguien lo lee entero un 10 para \u00e9l<\/p>\n<p>\u00a1\u00a1y si me responde un 100!!<\/p>\n<p>Gracias \ud83d\ude09<\/p>\n","protected":false},"template":"","class_list":["post-26175","topic","type-topic","status-closed","hentry","topic-tag-oxygen","topic-tag-sidebar-secondary","topic-tag-template"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/26175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/26175\/revisions"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=26175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}