• 15-12-2016, 12:08:17
    #1
    Selam

    wordpress sitemde çok garip bir sorun yaşıyorum.

    <head> </head > arasında bir kod var

    <link rel='stylesheet' id='hueman-main-style-css' href='http://www.domain.com/wp-content/themes/hueman/assets/front/css/main.min.css?ver=4.7' type='text/css' media='all' />
    <link rel='stylesheet' id='theme-stylesheet-css' href='http://www.domain.com/wp-content/themes/hueman/style.css?ver=4.7' type='text/css' media='all' />
    <link rel='stylesheet' id='hueman-font-awesome-css' href='http://www.domain.com/wp-content/themes/hueman/assets/front/css/font-awesome.min.css?ver=4.7' type='text/css' media='all' />

    bunları kaldırmak istiyorum.

    Tüm dosyaları indirdim, tek tek baktım.
    wp admin panelden düzenleyiciden tek tek inceledim

    ftp de arama yaptım.

    ama yok. Bulamıyorum .

    Lütfen yardımcı olurmusunuz ? Bu kodlar nerede olabilir ?

    Yardım ricasıyla
  • 15-12-2016, 12:13:48
    #2
    Hueman temasında fonksiyon dosyasındaydı bu kodlar.
  • 15-12-2016, 12:22:11
    #3
    FSahin adlı üyeden alıntı: mesajı görüntüle
    Hueman temasında fonksiyon dosyasındaydı bu kodlar.
    Function.phpde sadece bunlar var

    <?php
    //do not remove this
    load_template( get_template_directory() . '/functions/init-core.php' );

    /**
    * The best and safest way to extend the Humean WordPress theme with your own custom code is to create a child theme.
    * You can add temporary code snippets and hacks to the current functions.php file, but unlike with a child theme, they will be lost on upgrade.
    *
    * If you don't know what a child theme is, you really want to spend 5 minutes learning how to use child themes in WordPress, you won't regret it !
    * https://codex.wordpress.org/Child_Themes
    *
  • 15-12-2016, 13:26:08
    #4
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Şifreli dosya varmı?
  • 15-12-2016, 13:30:14
    #5
    init-front.php'de şu kısımda

    if ( ! function_exists( 'hu_styles' ) ) {
      function hu_styles() {
        $_main_style = hu_is_checked('responsive') ? 'main' : 'main-not-responsive';
    
        //registered only, will be loaded as a dependency of the wp style.css
        wp_register_style(
            'hueman-main-style',
            sprintf('%1$s/assets/front/css/%2$s%3$s.css',
                get_template_directory_uri(),
                $_main_style,
                hu_is_checked('minified-css') ? '.min' : ''
            ),
            array(),
            ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
            'all'
        );
    
        //This function loads the main theme stylesheet or the child theme one
        //1) Not mandatory if only the main theme is activated. But mandatory if a child theme is used (otherwise the child theme style won't be loaded)
        //2) must be loaded as a dependency of 'hueman-main', to make it easier to override the main stylesheet rules without having to increase the specificicty of each child theme css rules
        wp_enqueue_style(
            'theme-stylesheet',
            get_stylesheet_uri(),
            array('hueman-main-style'),
            ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
            'all'
        );
    
        //can be dequeued() if already loaded by a plugin.
        //=> wp_dequeue_style( 'hueman-font-awesome' )
        wp_enqueue_style(
            'hueman-font-awesome',
            sprintf('%1$s/assets/front/css/%2$s',
                get_template_directory_uri(),
                hu_is_checked('minified-css') ? 'font-awesome.min.css' : 'dev-font-awesome.css'
            ),
            array( 'theme-stylesheet' ),
            ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
            'all'
        );
      }
    }
    add_action( 'wp_enqueue_scripts', 'hu_styles' );
  • 15-12-2016, 13:48:10
    #6
    FSahin adlı üyeden alıntı: mesajı görüntüle
    init-front.php'de şu kısımda

    if ( ! function_exists( 'hu_styles' ) ) {
      function hu_styles() {
        $_main_style = hu_is_checked('responsive') ? 'main' : 'main-not-responsive';
    
        //registered only, will be loaded as a dependency of the wp style.css
        wp_register_style(
            'hueman-main-style',
            sprintf('%1$s/assets/front/css/%2$s%3$s.css',
                get_template_directory_uri(),
                $_main_style,
                hu_is_checked('minified-css') ? '.min' : ''
            ),
            array(),
            ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
            'all'
        );
    
        //This function loads the main theme stylesheet or the child theme one
        //1) Not mandatory if only the main theme is activated. But mandatory if a child theme is used (otherwise the child theme style won't be loaded)
        //2) must be loaded as a dependency of 'hueman-main', to make it easier to override the main stylesheet rules without having to increase the specificicty of each child theme css rules
        wp_enqueue_style(
            'theme-stylesheet',
            get_stylesheet_uri(),
            array('hueman-main-style'),
            ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
            'all'
        );
    
        //can be dequeued() if already loaded by a plugin.
        //=> wp_dequeue_style( 'hueman-font-awesome' )
        wp_enqueue_style(
            'hueman-font-awesome',
            sprintf('%1$s/assets/front/css/%2$s',
                get_template_directory_uri(),
                hu_is_checked('minified-css') ? 'font-awesome.min.css' : 'dev-font-awesome.css'
            ),
            array( 'theme-stylesheet' ),
            ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
            'all'
        );
      }
    }
    add_action( 'wp_enqueue_scripts', 'hu_styles' );
    temayı kodlayanın derdı ne kı bukadar gızlıyor kodları ps hata verıyor sonra ara dur footer alacam dıye kodları
  • 15-12-2016, 13:51:07
    #7
    moncen adlı üyeden alıntı: mesajı görüntüle
    temayı kodlayanın derdı ne kı bukadar gızlıyor kodları ps hata verıyor sonra ara dur footer alacam dıye kodları
    Aslında adam kod gizlemiyor, Hueman teması gayet güzel kodlanmış bir temadır. Adam genelde hızlı bir tema yapmak için elinden gelen herşeyi yapıyor. Bu kodlarda da CSS'i minify hale getirmek için oluşturulmuş olan kodlar.
  • 15-12-2016, 14:11:55
    #8
    FSahin adlı üyeden alıntı: mesajı görüntüle
    init-front.php'de şu kısımda

    if ( ! function_exists( 'hu_styles' ) ) {
      function hu_styles() {
        $_main_style = hu_is_checked('responsive') ? 'main' : 'main-not-responsive';
    
        //registered only, will be loaded as a dependency of the wp style.css
        wp_register_style(
            'hueman-main-style',
            sprintf('%1$s/assets/front/css/%2$s%3$s.css',
                get_template_directory_uri(),
                $_main_style,
                hu_is_checked('minified-css') ? '.min' : ''
            ),
            array(),
            ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
            'all'
        );
    
        //This function loads the main theme stylesheet or the child theme one
        //1) Not mandatory if only the main theme is activated. But mandatory if a child theme is used (otherwise the child theme style won't be loaded)
        //2) must be loaded as a dependency of 'hueman-main', to make it easier to override the main stylesheet rules without having to increase the specificicty of each child theme css rules
        wp_enqueue_style(
            'theme-stylesheet',
            get_stylesheet_uri(),
            array('hueman-main-style'),
            ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
            'all'
        );
    
        //can be dequeued() if already loaded by a plugin.
        //=> wp_dequeue_style( 'hueman-font-awesome' )
        wp_enqueue_style(
            'hueman-font-awesome',
            sprintf('%1$s/assets/front/css/%2$s',
                get_template_directory_uri(),
                hu_is_checked('minified-css') ? 'font-awesome.min.css' : 'dev-font-awesome.css'
            ),
            array( 'theme-stylesheet' ),
            ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
            'all'
        );
      }
    }
    add_action( 'wp_enqueue_scripts', 'hu_styles' );

    peki bir şey sorabailirmiyim ? bu kodu o sayfadan nasıl kesip footera ekleyebilirim ? kestim ama sayfa bozuldu. sanırım yanlış yerden aldım kod bilgim olmadığı için. yardım rica ederim