Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Oswald
tagDiv Member

Hello Calin,

I have not activated the Cache Plugin (WP Super Cache)
But instead have some code in the htaccess for this.
Could this be the issue? My site is very fast ever since, especially on mobile. I would prefer to keep this code

# BEGIN Expire headers

<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault “access plus 5 seconds”
ExpiresByType image/x-icon “access plus 604800 seconds”
ExpiresByType image/jpeg “access plus 604800 seconds”
ExpiresByType image/png “access plus 604800 seconds”
ExpiresByType image/gif “access plus 604800 seconds”
ExpiresByType application/x-shockwave-flash “access plus 604800 seconds”
ExpiresByType text/css “access plus 604800 seconds”
ExpiresByType text/javascript “access plus 604800 seconds”
ExpiresByType application/javascript “access plus 604800 seconds”
ExpiresByType application/x-javascript “access plus 604800 seconds”
ExpiresByType font/truetype “access plus 604800 seconds”
ExpiresByType font/opentype “access plus 604800 seconds”
ExpiresByType application/x-font-woff “access plus 604800 seconds”
ExpiresByType image/svg+xml “access plus 604800 seconds”
ExpiresByType application/vnd.ms-fontobject “access plus 604800 seconds”
ExpiresByType text/html “access plus 600 seconds”
ExpiresByType application/xhtml+xml “access plus 600 seconds”
</ifModule>
# END Expire headers

<IfModule mod_deflate.c>
<filesMatch “\.(js|css|woff|html|php)$”>
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>

<IfModule mod_headers.c>
<FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>

Thanks!
Britt

Oswald
tagDiv Member

Thank you Colin!
I cannot use a Cloud Template as I have a lot of custom code in my single template (I am using loop-single-4.php)
Can I replace the following code with a code which would diplay the related articles as a flex block?
<?php echo $td_mod_single->related_posts();?>

Thanks!

Oswald
tagDiv Member

Thank you Calin. I had already tried what you suggest, but thumbs were still always cropped, less or more.

I found a solution though for images whithin flex blocs. In case someone has the same problem, just add this to your CSS:

.td-thumb-css {
background-size: contain!important;
background-repeat: no-repeat!important;
}

But I still have the problem with the images which are not within flex blocs (for example in “related articles” or “more stories”)
I installed the plugin “Simple Image Sizes”, set all thumbs to “not crop” and regenerated all images but this still does not change anything.

Could you tell me what can be done?
Thanks!

Oswald
tagDiv Member

  • This reply was modified 5 years by Oswald.
Oswald
tagDiv Member

Thank you! This worked perfectly..

Oswald
tagDiv Member

Hello!
The theme has always been installed in this folder. It’s just not called wp-content… Maybe this has nothing to do with it, I was just guessing.
Because the path in the error message is not skipping this folder but the “themes” folder.

It should look in
wp-content/themes/Newspaper
instead it is looking in
wp-content/Newspaper.

Do you know what I mean? I cannot put the Newspaper Folder directly into the wp-content folder.

Thank you!

  • This reply was modified 6 years by Oswald.
Oswald
tagDiv Member

Thank you! Works perfectly fine now.

Oswald
tagDiv Member

Hello,
I think you misunderstood.
I have Newspaper running on a Multisite and the icon font “Newspaper” does not display correctly on subsites (works fine on the mainsite)
Acutally the sign showing instead of the icons is the sign that shows when a font is not found. Maybe I have to install this font somewhere else? If yes how and where?
Thanks

Oswald
tagDiv Member

I know the option is not availiabe per default.

But I’ve been trying to modifie templates of modules, blocks, archive etc for days now and I just cannot get it work.

I should work with the following code (or one similar) :
<?php echo $td_mod_single->get_the_tags();?>

Could you tell me if this code is correct and in which file I would have to put it?

Thank you

Viewing 9 posts - 1 through 9 (of 9 total)