Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Thiago Duarte

conteudo wp_head

Recommended Posts

Olá, como faço para editar o conteudo que está dentro de wp_head ?

 

no meu header.php tem isso <?php wp_head(); ?>

 

mas dentro desse wp_head tem isso:

<style type="text/css" id="custom-colors-css">a, .wp-playlist-light .wp-playlist-playing { color: rgba( 204, 74, 0, 0.75 ); } a:hover, legend, mark, .comment-respond .required, pre, .form-allowed-tags code, pre code, .wp-playlist-light .wp-playlist-item:hover, .mejs-button button:hover::after, .mejs-overlay-button:hover::after { color: #cc4a00; } input[type='submit'], input[type='reset'], input[type='button'], button, .page-links a, .comment-reply-link, .comment-reply-login, .wp-calendar td.has-posts a, #menu-sub-terms li a { background-color: rgba( 204, 74, 0, 0.8 ); } legend, mark, pre, .form-allowed-tags code { background-color: rgba( 204, 74, 0, 0.1 ); } input[type='submit']:hover, input[type='submit']:focus, input[type='reset']:hover, input[type='reset']:focus, input[type='button']:hover, input[type='button']:focus, button:focus, button:hover,.page-links a:hover, .wp-calendar td.has-posts a:hover, .widget-title > .wrap,#comments-number > .wrap, #reply-title > .wrap, .attachment-meta-title > .wrap, .widget-search > .search-form, #menu-sub-terms li a:hover, .comment-reply-link:hover, .comment-reply-login:hover, .mejs-time-rail .mejs-time-loaded{ background-color: #cc4a00; } ::selection { background-color: #cc4a00; } legend { border-color: rgba( 204, 74, 0, 0.15 ); } body { border-top-color: #cc4a00; } .entry-content a, .entry-summary a, .comment-content a { border-bottom-color: rgba( 204, 74, 0, 0.15 ); } .entry-content a:hover, .entry-summary a:hover, .comment-content a:hover { border-bottom-color: rgba( 204, 74, 0, 0.75 ); } body, .widget-title, #comments-number, #reply-title,.attachment-meta-title { border-bottom-color: #cc4a00; } blockquote { background-color: rgba( 204, 74, 0, 0.85 ); } blockquote blockquote { background-color: rgba( 204, 74, 0, 0.9 ); } blockquote { outline-color: rgba( 204, 74, 0, 0.85); }</style>
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>


<style type="text/css" id="custom-header-css">body.custom-header #site-title a { color: #252525; }</style>
<style type="text/css" id="custom-background-css">body.custom-background { background: #2d2d2d; }</style>

Como faço para achar esse codigo ai para editar ?

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Cara, esse código tá parecendo que foi inserido pelo teu tema. Dá uma olhada no functions.php do teu tema.

Tem algo do teu tema ou de algum plugin que insere esse código, não é no wp_head.

Compartilhar este post


Link para o post
Compartilhar em outros sites

meu function não tem esse codigo, olha:

 

<?php
/**
 * "The universe is vast and we are so small. There is only one thing we can ever truly control...Whether 
 * we are good or evil." ~ Oma Desala (Stargate SG-1)
 *
 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU 
 * General Public License as published by the Free Software Foundation; either version 2 of the License, 
 * or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * You should have received a copy of the GNU General Public License along with this program; if not, write 
 * to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 *
 * @package    Stargazer
 * @subpackage Functions
 * @version    1.1.0
 * @author     Justin Tadlock <justin@justintadlock.com>
 * @copyright  Copyright (c) 2013 - 2014, Justin Tadlock
 * @link       http://themehybrid.com/themes/stargazer
 * @license    http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */


/* Get the template directory and make sure it has a trailing slash. */
$stargazer_dir = trailingslashit( get_template_directory() );


/* Load the Hybrid Core framework and launch it. */
require_once( $stargazer_dir . 'library/hybrid.php' );
new Hybrid();


/* Load theme-specific files. */
require_once( $stargazer_dir . 'inc/custom-background.php'     );
require_once( $stargazer_dir . 'inc/custom-header.php'         );
require_once( $stargazer_dir . 'inc/custom-colors.php'         );


/* Set up the theme early. */
add_action( 'after_setup_theme', 'stargazer_theme_setup', 5 );


/**
 * The theme setup function.  This function sets up support for various WordPress and framework functionality.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function stargazer_theme_setup() {


/* Load files. */
require_once( trailingslashit( get_template_directory() ) . 'inc/stargazer.php' );
require_once( trailingslashit( get_template_directory() ) . 'inc/customize.php' );


/* Load widgets. */
add_theme_support( 'hybrid-core-widgets' );


/* Theme layouts. */
add_theme_support( 
'theme-layouts', 
array(
'1c'        => __( '1 Column Wide',                'stargazer' ),
'1c-narrow' => __( '1 Column Narrow',              'stargazer' ),
'2c-l'      => __( '2 Columns: Content / Sidebar', 'stargazer' ),
'2c-r'      => __( '2 Columns: Sidebar / Content', 'stargazer' )
),
array( 'default' => is_rtl() ? '2c-r' :'2c-l' ) 
);


/* Load stylesheets. */
add_theme_support(
'hybrid-core-styles',
array( 'stargazer-fonts', 'one-five', 'gallery', 'stargazer-mediaelement', 'parent', 'style' )
);


/* Enable custom template hierarchy. */
add_theme_support( 'hybrid-core-template-hierarchy' );


/* The best thumbnail/image script ever. */
add_theme_support( 'get-the-image' );


/* Breadcrumbs. Yay! */
add_theme_support( 'breadcrumb-trail' );


/* Pagination. */
add_theme_support( 'loop-pagination' );


/* Nicer [gallery] shortcode implementation. */
add_theme_support( 'cleaner-gallery' );


/* Better captions for themes to style. */
add_theme_support( 'cleaner-caption' );


/* Automatically add feed links to <head>. */
add_theme_support( 'automatic-feed-links' );


/* Whistles plugin. */
add_theme_support( 'whistles', array( 'styles' => true ) );


/* Post formats. */
add_theme_support( 
'post-formats', 
array( 'aside', 'audio', 'chat', 'image', 'gallery', 'link', 'quote', 'status', 'video' ) 
);


/* Editor styles. */
add_editor_style( stargazer_get_editor_styles() );


/* Handle content width for embeds and images. */
// Note: this is the largest size based on the theme's various layouts.
hybrid_set_content_width( 1025 );
}

Agora que plugin que pode ser ?

Compartilhar este post


Link para o post
Compartilhar em outros sites

É no arquivo inc/custom-colors.php do teu tema.

 

Ah tah, mas não gostaria que colocasse codigo css com esse custom-colors.php, eu renomiei esse codigo para outro nome para ele não acrescentar mais css no codigo e meu thema todo parou de funcionar rsrsrs

 

tem como tirar esse codigo e fazer meu thema continuar funcionando normal?

 

Obrigado ai meu camarada =)

Olá, achei um require no function.php e comentei e resolveu

 

Obrigado ai =)

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.