• 10-01-2018, 16:43:24
    #1
    Header kısmında arkaplan rengiyle oynamak istiyorum ama background gibi ayarların yapıldığı her şey gizli sanki

    Header kodu bu
    <?php
    /**
     * The header for our theme.
     *
     * This is the template that displays all of the <head> section and everything up until <div id="content">
     *
     * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
     *
     * @package Best_Business
     */
    ?><?php
        /**
         * Hook - best_business_action_doctype.
         *
         * @hooked best_business_doctype - 10
         */
        do_action( 'best_business_action_doctype' );
    ?>
    <head>
        <?php
        /**
         * Hook - best_business_action_head.
         *
         * @hooked best_business_head - 10
         */
        do_action( 'best_business_action_head' );
        ?>
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
        <?php
        /**
         * Hook - best_business_action_before.
         *
         * @hooked best_business_page_start - 10
         * @hooked best_business_skip_to_content - 15
         */
        do_action( 'best_business_action_before' );
        ?>
        <?php
          /**
           * Hook - best_business_action_before_header.
           *
           * @hooked best_business_header_start - 10
           */
          do_action( 'best_business_action_before_header' );
        ?>
            <?php
            /**
             * Hook - best_business_action_header.
             *
             * @hooked best_business_site_branding - 10
             */
            do_action( 'best_business_action_header' );
            ?>
        <?php
          /**
           * Hook - best_business_action_after_header.
           *
           * @hooked best_business_header_end - 10
           * @hooked best_business_add_primary_navigation - 20
           */
          do_action( 'best_business_action_after_header' );
        ?>
        <?php
        /**
         * Hook - best_business_action_before_content.
         *
         * @hooked best_business_content_start - 10
         */
        do_action( 'best_business_action_before_content' );
        ?>
        <?php
          /**
           * Hook - best_business_action_content.
           */
          do_action( 'best_business_action_content' );
    style.php
    page.php footer.php ve home.php'de aynı şekilde bir eklenti mi kurmam lazım linklere baktım indirebileceğim bir şey yok?

    yardım eder misiniz?
  • 10-01-2018, 17:03:04
    #2
    </head> kodundan hemen önce şuna benzer bir kod yazarak istediğin style'i yedirebilirsin.
    <style type="text/css">
    .headerclassi, #headeridsi, headertagi { background-color: #cc0000 !important; }
    </style>
    Anlaşılmayan bir durum varsa site adresinizi verin, arkaplan renginin ne olacağını colorpicker.com dan seçin, uygun kodu yazalım.
  • 10-01-2018, 17:06:31
    #3
    Üyeliği durduruldu
    Onur89TR adlı üyeden alıntı: mesajı görüntüle
    </head> kodundan hemen önce şuna benzer bir kod yazarak istediğin style'i yedirebilirsin.
    <style type="text/css">
    .headerclassi, #headeridsi, headertagi { background-color: #cc0000 !important; }
    </style>
    Anlaşılmayan bir durum varsa site adresinizi verin, arkaplan renginin ne olacağını colorpicker.com dan seçin, uygun kodu yazalım.
    Arkadaş bence header.php'yi arıyor. Bazı temalarda header.php footer.php bulunmuyor. Bulamazsanız bende bağlanıp yardımcı olmaya çalışırım.
  • 10-01-2018, 17:40:21
    #4
    F12 geliştirici araçlarından sitenin HTML'sine göre header div'ine arkaplan verilebilir. Bunun için header.php'de illa kodların açık olması gerekmiyor. Bu temada functions.php şifreli büyük ihtimal. Ve oradaki function'lar temanın çeşitli yerlerine aktarılmış.
  • 10-01-2018, 18:03:43
    #5
    Üyeliği durduruldu
    template part mantığı ile yapılmış tema olabilir. Birkaç head, header olabilir bakmak lazım.
  • 10-01-2018, 21:59:04
    #6
    Onur89TR adlı üyeden alıntı: mesajı görüntüle
    </head> kodundan hemen önce şuna benzer bir kod yazarak istediğin style'i yedirebilirsin.
    <style type="text/css">
    .headerclassi, #headeridsi, headertagi { background-color: #cc0000 !important; }
    </style>
    Anlaşılmayan bir durum varsa site adresinizi verin, arkaplan renginin ne olacağını colorpicker.com dan seçin, uygun kodu yazalım.
    angelicmoon adlı üyeden alıntı: mesajı görüntüle
    Arkadaş bence header.php'yi arıyor. Bazı temalarda header.php footer.php bulunmuyor. Bulamazsanız bende bağlanıp yardımcı olmaya çalışırım.
    Onur89TR adlı üyeden alıntı: mesajı görüntüle
    F12 geliştirici araçlarından sitenin HTML'sine göre header div'ine arkaplan verilebilir. Bunun için header.php'de illa kodların açık olması gerekmiyor. Bu temada functions.php şifreli büyük ihtimal. Ve oradaki function'lar temanın çeşitli yerlerine aktarılmış.
    _iyiblog_ adlı üyeden alıntı: mesajı görüntüle
    template part mantığı ile yapılmış tema olabilir. Birkaç head, header olabilir bakmak lazım.
    düzenleyicide başka göremedim header.php veya buna benzer bir şey aynen sanki tüm dosyalar şifreli gibi ne yapacağımı bilemedim

    function.php bu şekilde

    <?php
    /**
     * Theme functions and definitions.
     *
     * @link https://codex.wordpress.org/Functions_File_Explained
     *
     * @package Best_Business
     */
    if ( ! function_exists( 'best_business_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 for post thumbnails.
         */
        function best_business_setup() {
            // Make theme available for translation.
            load_theme_textdomain( 'best-business' );
            // Add default posts and comments RSS feed links to head.
            add_theme_support( 'automatic-feed-links' );
            // Let WordPress manage the document title.
            add_theme_support( 'title-tag' );
            // Enable support for Post Thumbnails.
            add_theme_support( 'post-thumbnails' );
            add_image_size( 'best-business-thumb', 360, 270 );
            // Register nav menus.
            register_nav_menus( array(
                'primary' => esc_html__( 'Primary Menu', 'best-business' ),
                'top'     => esc_html__( 'Top Menu', 'best-business' ),
                'footer'  => esc_html__( 'Footer Menu', 'best-business' ),
                'social'  => esc_html__( 'Social Menu', 'best-business' ),
            ) );
            // Add support for HTML5 markup.
            add_theme_support( 'html5', array(
                'comment-form',
                'comment-list',
                'gallery',
                'caption',
            ) );
            // Set up the WordPress core custom background feature.
            add_theme_support( 'custom-background', apply_filters( 'best_business_custom_background_args', array(
                'default-color' => 'FFFFFF',
                'default-image' => '',
            ) ) );
            // Enable support for selective refresh of widgets in Customizer.
            add_theme_support( 'customize-selective-refresh-widgets' );
            // Enable support for custom logo.
            add_theme_support( 'custom-logo', array(
                'width'       => 300,
                'height'      => 100,
                'flex-width'  => true,
                'flex-height' => true,
            ) );
            // Add WooCommerce support.
            add_theme_support( 'woocommerce' );
            add_theme_support( 'wc-product-gallery-lightbox' );
            $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
            // Enable admin editor style.
            add_editor_style( array( best_business_fonts_url(), 'css/editor-style' . $min . '.css' ) );
            add_theme_support( 'custom-header', apply_filters( 'best_business_custom_header_args', array(
                'default-image' => get_template_directory_uri() . '/images/custom-header.jpg',
                'width'         => 1920,
                'height'        => 490,
                'flex-height'   => true,
                'header-text'   => false,
            ) ) );
            // Register default custom headers.
            register_default_headers( array(
                'business-time' => array(
                    'url'           => '%s/images/custom-header.jpg',
                    'thumbnail_url' => '%s/images/custom-header.jpg',
                    'description'   => esc_html_x( 'Business Time', 'header image description', 'best-business' ),
                ),
            ) );
            // Declare support for demo importer.
            $importer_content = array(
                'static_front_page' => true,
                'static_page'       => 'home',
                'posts_page'        => 'blog',
                'menu_locations'    => array(
                    'primary' => 'main-menu',
                    'top'     => 'top-menu',
                    'social'  => 'social-menu',
                    ),
                );
            add_theme_support( 'axle-demo-importer', $importer_content );
        }
    endif;
    add_action( 'after_setup_theme', 'best_business_setup' );
    /**
     * Set the content width in pixels, based on the theme's design and stylesheet.
     *
     * Priority 0 to make it available to lower priority callbacks.
     *
     * @global int $content_width
     */
    function best_business_content_width() {
        $GLOBALS['content_width'] = apply_filters( 'best_business_content_width', 640 );
    }
    add_action( 'after_setup_theme', 'best_business_content_width', 0 );
    /**
     * Register widget area.
     *
     * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
     */
    function best_business_widgets_init() {
        register_sidebar( array(
            'name'          => esc_html__( 'Primary Sidebar', 'best-business' ),
            'id'            => 'sidebar-1',
            'description'   => esc_html__( 'Add widgets here to appear in your Primary Sidebar.', 'best-business' ),
            'before_widget' => '<aside id="%1$s" class="widget %2$s">',
            'after_widget'  => '</aside>',
            'before_title'  => '<h2 class="widget-title">',
            'after_title'   => '</h2>',
        ) );
        register_sidebar( array(
            'name'          => esc_html__( 'Secondary Sidebar', 'best-business' ),
            'id'            => 'sidebar-2',
            'description'   => esc_html__( 'Add widgets here to appear in your Secondary Sidebar.', 'best-business' ),
            'before_widget' => '<aside id="%1$s" class="widget %2$s">',
            'after_widget'  => '</aside>',
            'before_title'  => '<h2 class="widget-title">',
            'after_title'   => '</h2>',
        ) );
        register_sidebar( array(
            'name'          => esc_html__( 'Front Page Widget Area', 'best-business' ),
            'id'            => 'sidebar-front-page-widget-area',
            'description'   => esc_html__( 'Add widgets here to appear in your Static Front Page.', 'best-business' ),
            'before_widget' => '<aside id="%1$s" class="widget %2$s"><div class="container">',
            'after_widget'  => '</div></aside>',
            'before_title'  => '<h2 class="widget-title">',
            'after_title'   => '<span class="divider"></span></h2>',
        ) );
        register_sidebar( array(
            'name'          => sprintf( esc_html__( 'Footer %d', 'best-business' ), 1 ),
            'id'            => 'footer-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'          => sprintf( esc_html__( 'Footer %d', 'best-business' ), 2 ),
            'id'            => 'footer-2',
            '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'          => sprintf( esc_html__( 'Footer %d', 'best-business' ), 3 ),
            'id'            => 'footer-3',
            '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'          => sprintf( esc_html__( 'Footer %d', 'best-business' ), 4 ),
            'id'            => 'footer-4',
            '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', 'best_business_widgets_init' );
    /**
     * Enqueue scripts and styles.
     */
    function best_business_scripts() {
        $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
        wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/vendors/font-awesome/css/font-awesome' . $min . '.css', '', '4.7.0' );
        $fonts_url = best_business_fonts_url();
        if ( ! empty( $fonts_url ) ) {
            wp_enqueue_style( 'best-business-google-fonts', $fonts_url, array(), null );
        }
        wp_enqueue_style( 'jquery-sidr', get_template_directory_uri() . '/vendors/sidr/css/jquery.sidr.dark' . $min . '.css', '', '2.2.1' );
        wp_enqueue_style( 'best-business-style', get_stylesheet_uri(), array(), '1.0.7' );
        wp_enqueue_script( 'best-business-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix' . $min . '.js', array(), '20130115', true );
        wp_enqueue_script( 'jquery-cycle2', get_template_directory_uri() . '/vendors/cycle2/js/jquery.cycle2' . $min . '.js', array( 'jquery' ), '2.1.6', true );
        wp_enqueue_script( 'jquery-sidr', get_template_directory_uri() . '/vendors/sidr/js/jquery.sidr' . $min . '.js', array( 'jquery' ), '2.2.1', true );
        wp_enqueue_script( 'best-business-custom', get_template_directory_uri() . '/js/custom' . $min . '.js', array( 'jquery' ), '1.0.1', true );
        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
            wp_enqueue_script( 'comment-reply' );
        }
    }
    add_action( 'wp_enqueue_scripts', 'best_business_scripts' );
    // Load starting file.
    require_once trailingslashit( get_template_directory() ) . 'includes/start.php';
    home.php
    <?php
    /**
     * Template for posts page.
     *
     * @package Best_Business
     */
    get_header(); ?>
        <div id="primary" class="content-area">
            <main id="main" class="site-main" role="main">
            <?php if ( have_posts() ) : ?>
                <?php if ( is_home() && ! is_front_page() ) : ?>
                    <header>
                        <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
                    </header>
                <?php endif; ?>
                <?php /* Start the Loop */ ?>
                <?php while ( have_posts() ) : the_post(); ?>
                    <?php get_template_part( 'template-parts/content' ); ?>
                <?php endwhile; ?>
                <?php
                /**
                 * Hook - best_business_action_posts_navigation.
                 *
                 * @hooked: best_business_custom_posts_navigation - 10
                 */
                do_action( 'best_business_action_posts_navigation' ); ?>
            <?php else : ?>
                <?php get_template_part( 'template-parts/content', 'none' ); ?>
            <?php endif; ?>
            </main><!-- #main -->
        </div><!-- #primary -->
    <?php
        /**
         * Hook - best_business_action_sidebar.
         *
         * @hooked: best_business_add_sidebar - 10
         */
        do_action( 'best_business_action_sidebar' );
    ?>
    <?php get_footer(); ?>
    Page.php şu şekilde

    <?php
    /**
     * The template for displaying all pages.
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site may use a
     * different template.
     *
     * @link https://codex.wordpress.org/Template_Hierarchy
     *
     * @package Best_Business
     */
    get_header(); ?>
        <div id="primary" class="content-area">
            <main id="main" class="site-main" role="main">
                <?php while ( have_posts() ) : the_post(); ?>
                    <?php get_template_part( 'template-parts/content', 'page' ); ?>
                    <?php
                        // If comments are open or we have at least one comment, load up the comment template.
                    if ( comments_open() || get_comments_number() ) :
                        comments_template();
                        endif;
                    ?>
                <?php endwhile; // End of the loop. ?>
            </main><!-- #main -->
        </div><!-- #primary -->
    <?php
        /**
         * Hook - best_business_action_sidebar.
         *
         * @hooked: best_business_add_sidebar - 10
         */
        do_action( 'best_business_action_sidebar' );
    ?>
    <?php get_footer(); ?>
    site:
    www.b e s t e havuz cul uk.com
  • 10-01-2018, 22:38:07
    #7
    Üyeliği durduruldu
    hocam headerın background ı mı değiştirmek istiyorsun ? team yolla bağlanayım
  • 10-01-2018, 22:52:26
    #8
    style.css'nin sonuna (Örnek renk verdim. colorpicker.com adresinden seçebilirsin rengi.)
    header.site-header { background-color: #cc0000; }
    Eğer rengi koyu seçtiysen ve beyaz renk yazı istiyorsan (ek kod olarak hemen altına);
    header.site-header * { color: #ffffff; }
    style.css yoksa, header.php'de </head> diye arat, hemen üstüne:

    <style type="text/css">BURAYA YUKARIDAKİ KODLARDAN KOYABİLİRSİN</style>
  • 13-01-2018, 21:14:15
    #9
    angelicmoon adlı üyeden alıntı: mesajı görüntüle
    hocam headerın background ı mı değiştirmek istiyorsun ? team yolla bağlanayım
    Onur89TR adlı üyeden alıntı: mesajı görüntüle
    style.css'nin sonuna (Örnek renk verdim. colorpicker.com adresinden seçebilirsin rengi.)
    header.site-header { background-color: #cc0000; }
    Eğer rengi koyu seçtiysen ve beyaz renk yazı istiyorsan (ek kod olarak hemen altına);
    header.site-header * { color: #ffffff; }
    style.css yoksa, header.php'de </head> diye arat, hemen üstüne:

    <style type="text/css">BURAYA YUKARIDAKİ KODLARDAN KOYABİLİRSİN</style>

    Style.css'in en sonuna renk kodunu değiştirerek ekledim hiç bir şey değişmedi
    birazdan team wiever açabilirim iş yerinde yazdığım mesajlar gitmiyor.