Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Well m8 those u cant fix with code, since they arent on your site/host, example remove the code for google-analytics and do the test again you will see it wont be there, those googlesyndication are ads on your site, so try reduce those. but what you can do is:

    – on the gmetrix i see you dont use cdn, try setup this Cloudflare ;

    – also read about Reduce DNS Lookups – Dns prefetch

    this goes in your theme header.php
    example:

    <link rel="dns-prefetch" href="//www.google-analytics.com">
    <link rel="dns-prefetch" href="//fonts.googleapis.com">
    <link rel="dns-prefetch" href="//ajax.googleapis.com">
    <link rel="dns-prefetch" href="//connect.facebook.net">
    <link rel="dns-prefetch" href="//maps.gstatic.com">
    <link rel="dns-prefetch" href="//maps.google.com">

    i was also searching how 2 add fonts to the font family and found this:

    add_filter( 'tiny_mce_before_init', 'wpex_mce_google_fonts_array' );
    function wpex_mce_google_fonts_array( $initArray ) {
        // Google Web Fonts
        $theme_advanced_fonts = 'Aclonica=Aclonica;';
        $theme_advanced_fonts .= 'Lato=Lato;';
        $theme_advanced_fonts .= 'Michroma=Michroma;';
        $theme_advanced_fonts .= 'Paytone One=Paytone One';
        // Default fonts for TinyMCE
        $theme_advanced_fonts .= 'Andale Mono=Andale Mono, Times;';
        $theme_advanced_fonts .= 'Arial=Arial, Helvetica, sans-serif;';
        $theme_advanced_fonts .= 'Arial Black=Arial Black, Avant Garde;';
        $theme_advanced_fonts .= 'Book Antiqua=Book Antiqua, Palatino;';
        $theme_advanced_fonts .= 'Comic Sans MS=Comic Sans MS, sans-serif;';
        $theme_advanced_fonts .= 'Courier New=Courier New, Courier;';
        $theme_advanced_fonts .= 'Georgia=Georgia, Palatino;';
        $theme_advanced_fonts .= 'Helvetica=Helvetica;';
        $theme_advanced_fonts .= 'Impact=Impact, Chicago;';
        $theme_advanced_fonts .= 'Symbol=Symbol;';
        $theme_advanced_fonts .= 'Tahoma=Tahoma, Arial, Helvetica, sans-serif;';
        $theme_advanced_fonts .= 'Terminal=Terminal, Monaco;';
        $theme_advanced_fonts .= 'Times New Roman=Times New Roman, Times;';
        $theme_advanced_fonts .= 'Trebuchet MS=Trebuchet MS, Geneva;';
        $theme_advanced_fonts .= 'Verdana=Verdana, Geneva;';
        $theme_advanced_fonts .= 'Webdings=Webdings;';
        $theme_advanced_fonts .= 'Wingdings=Wingdings, Zapf Dingbats';
        $initArray['font_formats'] = $theme_advanced_fonts;
        return $initArray;
    }
    
    add_action( 'admin_init', 'wpex_mce_google_fonts_styles' );
    function wpex_mce_google_fonts_styles() {
       $font1 = 'http://fonts.googleapis.com/css?family=Aclonica:300,400,700';
       add_editor_style( str_replace( ',', '%2C', $font1 ) );
       $font2 = 'http://fonts.googleapis.com/css?family=Lato:300,400,700';
       add_editor_style( str_replace( ',', '%2C', $font2 ) );
       $font3 = 'http://fonts.googleapis.com/css?family=Michroma:300,400,700';
       add_editor_style( str_replace( ',', '%2C', $font3 ) );
       $font4 = 'http://fonts.googleapis.com/css?family=Paytone+One:300,400,700';
       add_editor_style( str_replace( ',', '%2C', $font4 ) );
    }
    
    add_action('admin_head-post.php', function() {
        ?>
        <style>
        @import url(http://fonts.googleapis.com/css?family=Aclonica);
        @import url(http://fonts.googleapis.com/css?family=Lato);
        @import url(http://fonts.googleapis.com/css?family=Michroma);
        @import url(http://fonts.googleapis.com/css?family=Paytone+One);
        </style>
        <?php
    });

    now if u insert this code in theme functions.php you will get those 4 fonts on the top of all existing fonts in the font family drop down and in the editor the fonts actualy work, but when you hit save and check the page they dont show, so if someone can check this and maybe find what needs to be changed so this code to actualy work…

    Thread Starter Lastbreath

    (@lastbreath)

    tnx for the answer

    #1 finnaly i figure out that, i kinda just set up the look and saved settings and forgot about to check those settings…

    #2 i hope u understand what i want to do, if i use smtp info mail pass server and port, and i sent mail with the contact form the mail received it states its from the mail on the smtp not the one typed on the email input…

    Thread Starter Lastbreath

    (@lastbreath)

    tnx for replaying, ive tryed Settings > General it didnt work, ive also tryed user > admin chaned that mail, still sends those mails to the mailed entered when installing WP.

    Thread Starter Lastbreath

    (@lastbreath)

    #1 – can you point to me where do i do that, where do i change default mail, coz cant find it..

    #2 – well if i add wp mail back plugin and insert my host smtp infos, the mails sent from the contact form comes like

    From: hostmail@host.com (name@fotolik.mk mail created on my host)
    To: defaultwpmail@host.com

    in this case i dont see who i need to reply to, who entered the mail in the mail input.

Viewing 5 replies - 1 through 5 (of 5 total)