Forum Replies Created

Viewing 15 replies - 91 through 105 (of 109 total)
  • Thread Starter dammsugare

    (@dammsugare)

    Hi Torsten,
    thank you for your answer! I will try the different methods, however, it is quite complicated since the results in pingdom&Co vary from test to test(greatly!!).
    But Cachify can work with Opcode Cache? And last: Do I need to configure the robots.txt for seo purposes?
    Sorry for my all my questions, but i am a beginner and want to make sure everything is alright ??

    Thread Starter dammsugare

    (@dammsugare)

    Hallo,
    ich hoffe, es ist okay, auch in Deutsch zu schreiben…
    Ich habe den Button entdeckt! Vielen Dank!
    Bezüglich des Speeds: Ich habe jetzt nochmal probiert, und pl?tzlich sind die Werte(zumindest was den Speed angeht) etwas besser. Ich verstehe Pingdom&Co irgendwie nicht so ganz, immer schwanken die Werte.
    Ich habe aber trotzdem eine Frage: Was ist die beste Art für das Caching? Ich habe zur Zeit Festplatte und den Code in die htaccess eingefügt, allerdings hatte ich schon vorher folgendes in der Datei:

    php_value memory_limit 128M
    php_value max_execution_time 300
    
    #GZIP
    <IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    </IfModule>
    
    #CACHING
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access 5 seconds"
    ExpiresByType image/jpg "access 1 month"
    ExpiresByType image/jpeg "access 1 month"
    ExpiresByType image/gif "access 1 month"
    ExpiresByType image/png "access 1 month"
    ExpiresByType image/ico "access 1 month"
    ExpiresByType image/x-icon "access 1 month"
    ExpiresByType image/svg+xml "access 1 month"
    ExpiresByType text/css "access 1 month"
    ExpiresByType text/javascript "access 1 month"
    ExpiresByType application/javascript "access 1 month"
    ExpiresByType application/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    </IfModule>
    
    #CACHE-CONTROL, KEEP ALIVE, ETAGS
    <IfModule mod_headers.c>
    Header append Cache-Control "public"
    Header append Vary Accept-Encoding
    Header set Connection keep-alive
    Header unset ETag
    FileETag None
    </IfModule>
    
    # AUTH PROTECT WP-LOGIN.PHP
    <Files wp-login.php>
      AuthName "Admin-Bereich"
      AuthType Basic
      AuthUserFile /wordpress/.htpasswd
      Require valid-user
    </Files>
    
    # DENY ACCESS TO .HTACCESS
    <FilesMatch "(\.htaccess|\.htpasswd)">
      Order deny,allow
      Deny from all
    </FilesMatch>
    
    # PREVENT DIRECTORY LISTINGS
    Options -Indexes
    
    # DISALLOW ACCESS TO IMPORTANT FILES
    <FilesMatch "(^\.|wp-config\.php|xmlrpc\.php|(?<!robots)\.txt|(liesmich|readme)\.*)">
       Order deny,allow
       Deny from all
    </FilesMatch>
    
    #HOTLINKING VERBIETEN
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https://(www\.)?meineseite\.de(/.*)?$ [NC]
    RewriteCond %{HTTP_REFERER} !google\. [NC]
    RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
    RewriteRule \.(gif|jpg|GIF|JPG|png|PNG)$ - [F]
    
    #BLOCK THE INCLUDE - ONLY FILES
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^wp-admin/includes/ - [F,L]
    RewriteRule !^wp-includes/ - [S=3]
    RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
    RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
    RewriteRule ^wp-includes/theme-compat/ - [F,L]
    </IfModule>
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^android-chrome-144x144\.png /wp-content/uploads/fbrfg/android-chrome-144x144.png [QSA,L]
    RewriteRule ^android-chrome-192x192\.png /wp-content/uploads/fbrfg/android-chrome-192x192.png [QSA,L]
    RewriteRule ^android-chrome-36x36\.png /wp-content/uploads/fbrfg/android-chrome-36x36.png [QSA,L]
    RewriteRule ^android-chrome-48x48\.png /wp-content/uploads/fbrfg/android-chrome-48x48.png [QSA,L]
    RewriteRule ^android-chrome-72x72\.png /wp-content/uploads/fbrfg/android-chrome-72x72.png [QSA,L]
    RewriteRule ^android-chrome-96x96\.png /wp-content/uploads/fbrfg/android-chrome-96x96.png [QSA,L]
    RewriteRule ^apple-touch-icon-114x114\.png /wp-content/uploads/fbrfg/apple-touch-icon-114x114.png [QSA,L]
    RewriteRule ^apple-touch-icon-120x120\.png /wp-content/uploads/fbrfg/apple-touch-icon-120x120.png [QSA,L]
    RewriteRule ^apple-touch-icon-144x144\.png /wp-content/uploads/fbrfg/apple-touch-icon-144x144.png [QSA,L]
    RewriteRule ^apple-touch-icon-152x152\.png /wp-content/uploads/fbrfg/apple-touch-icon-152x152.png [QSA,L]
    RewriteRule ^apple-touch-icon-180x180\.png /wp-content/uploads/fbrfg/apple-touch-icon-180x180.png [QSA,L]
    RewriteRule ^apple-touch-icon-57x57\.png /wp-content/uploads/fbrfg/apple-touch-icon-57x57.png [QSA,L]
    RewriteRule ^apple-touch-icon-60x60\.png /wp-content/uploads/fbrfg/apple-touch-icon-60x60.png [QSA,L]
    RewriteRule ^apple-touch-icon-72x72\.png /wp-content/uploads/fbrfg/apple-touch-icon-72x72.png [QSA,L]
    RewriteRule ^apple-touch-icon-76x76\.png /wp-content/uploads/fbrfg/apple-touch-icon-76x76.png [QSA,L]
    RewriteRule ^apple-touch-icon-precomposed\.png /wp-content/uploads/fbrfg/apple-touch-icon-precomposed.png [QSA,L]
    RewriteRule ^apple-touch-icon\.png /wp-content/uploads/fbrfg/apple-touch-icon.png [QSA,L]
    RewriteRule ^browserconfig\.xml /wp-content/uploads/fbrfg/browserconfig.xml [QSA,L]
    RewriteRule ^favicon-16x16\.png /wp-content/uploads/fbrfg/favicon-16x16.png [QSA,L]
    RewriteRule ^favicon-32x32\.png /wp-content/uploads/fbrfg/favicon-32x32.png [QSA,L]
    RewriteRule ^favicon-96x96\.png /wp-content/uploads/fbrfg/favicon-96x96.png [QSA,L]
    RewriteRule ^favicon\.ico /wp-content/uploads/fbrfg/favicon.ico [QSA,L]
    RewriteRule ^manifest\.json /wp-content/uploads/fbrfg/manifest.json [QSA,L]
    RewriteRule ^mstile-144x144\.png /wp-content/uploads/fbrfg/mstile-144x144.png [QSA,L]
    RewriteRule ^mstile-150x150\.png /wp-content/uploads/fbrfg/mstile-150x150.png [QSA,L]
    RewriteRule ^mstile-310x150\.png /wp-content/uploads/fbrfg/mstile-310x150.png [QSA,L]
    RewriteRule ^mstile-310x310\.png /wp-content/uploads/fbrfg/mstile-310x310.png [QSA,L]
    RewriteRule ^mstile-70x70\.png /wp-content/uploads/fbrfg/mstile-70x70.png [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Ich habe Euren Code dann einfach darübergesetzt…ich hoffe, das ist okay?
    Ich werde morgen mit meinem Hoster sprechen, was für ein Caching am besten w?re,ich wei?, dss ich auf PHP mit Opcode und APCu wechseln k?nnte oder auch Opcode Cache. W?re das noch besser?

    Und eine letzte Frage: Laut Pingdom&Google müsste ich einiges an externem JS und CSS kombinieren, aber jegliche Versuche durch Minify, Autoptimize oder auch Code snippets für die functions.php zerschlagen mir die Seite…habt Ihr eine Empfehlunng?

    Vielen lieben Dank!

    Thread Starter dammsugare

    (@dammsugare)

    Sounds great, thank you.

    Thread Starter dammsugare

    (@dammsugare)

    Thank you very much!

    Thread Starter dammsugare

    (@dammsugare)

    I know there isn’t a built in option, I thought maybe there is a way with css, like this

    .logo {
        background: url('img/logo.png');
        background-image: url('img/logo.svg'), none;
    }

    Would this work somehow?

    Thread Starter dammsugare

    (@dammsugare)

    Hey Kadence,
    by fallback I mean an alternative if the browser doesn’t support svg. I have a detailed logo that I would like to use and png or jpg just doesn’t worked when resized, so I would like to use a vector but have a fallback in case the browser won’t load it.

    Thread Starter dammsugare

    (@dammsugare)

    I am not allowed to make the site public ??
    But thank you for all the great support. You guys rock!
    I actually have one little question left: Can I add different top-paddngs for different pages? I want 40px padding on all sites except the homepage, there I only want 20px top padding. If I use .contentclass{padding-top:…;} it will apply to all the pages…

    Thread Starter dammsugare

    (@dammsugare)

    It is still not working ?? My blog page is set in the readings option as the blog page and I also tried your code. WHen I inspect the blog menu item link, it says “menu-blog menu-item-46”. Would I need to use this in the code above?
    Alternatively I read about this

    <?php if (is_single() || is_category() || is_tag() || is_search()) {   //  displaying a single blog post or a blog archive ?>
        <script type="text/javascript">
            jQuery("li.current_page_parent").addClass('current-menu-item');
        </script>
    <?php } ?>

    but you are supposed to place it in the footer template and I read some other posts that you don’t recommend editing the templates.

    Thread Starter dammsugare

    (@dammsugare)

    Hey,
    what I mean is that of course the “blog” menu item is highlighted when you visit the blog page, but that is just the post archive. Once you click on the individual post or a post category, the “blog” menu item is not highlighted anymore. You can also see this in your demo:
    https://themes.kadencethemes.com/virtue-premium-4/basic-image-gallery-post/

    Thread Starter dammsugare

    (@dammsugare)

    Hallo,
    danke für die Antwort.
    Ich habe es jetzt über das thankyou.php Template in meinem Childtheme geschafft, aber das leider nicht die optimale L?sung(wegen Updates). Ich m?chte auch gerne die ganzen Kunden-/Bestellinfo sowie die Bezahldetails von dieser Seite entfernen, aber

    remove_action( ‘woocommerce_thankyou_’ . $order->payment_method, $order->id );
    remove_action( ‘woocommerce_thankyou’, $order->id );

    funktioniert leider nicht..

    Thread Starter dammsugare

    (@dammsugare)

    Danke!

    Thread Starter dammsugare

    (@dammsugare)

    Great, thank you!

    Thread Starter dammsugare

    (@dammsugare)

    Unfortunately not, the site is not public yet…

    Thread Starter dammsugare

    (@dammsugare)

    I tried different versions, also with https:// instead of html/ but nothing worked ??

    Thread Starter dammsugare

    (@dammsugare)

    Great, this did the job. Is it also possible to make the sticky header transparent like in your demo 1, but instead of white my background image should be transparent? I cannot use this

    .is-sticky .headerclass {
    background: rgba(255,255,255,.9);
    }

    since it would make the header white and transparent. I tried

    .is-sticky .headerclass {
    opacity:.9;
    }

    but it made the logo and the topbar also transparent!

Viewing 15 replies - 91 through 105 (of 109 total)