Problem with blog posts

Hi,

We have a problem with our blog posts at our site. Here: https://kulmedkids.se/category/kul-med-kids-blogg/moten/ you can see that the text that shows in the blog posts are the same in every blog post, i.e. “Är du blivande förälder/småbarnsförälder?” and so on… But this is not the text that belongs to the blog posts, as you for example can see here: https://kulmedkids.se/lunch-med-claes/. Why is that?

We really appreciate your help with this issue!

Kind regards,
Johanna & Mikaela

Hi there,

Thanks for writing around! Do you have customization in your child theme? Please test for the following first:

  1. Deactivate your child theme and switch to parent theme. Remove custom CSS and JavaScript (take a backup first)

  2. I see the content in your site is being served by the cache, please clear all caches including browser cache then deactivate your caching plugins and other optimization plugins.

  3. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.

  4. There is a JavaScript error in your site. Please test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how this goes!

Hi,

I think it is a third party plugin, everytjing is working but when I click on the JS box I cant se the posts in the blog arcive.I have a option that I can exclude JS, is it possible to exclude the blogarchive with a code so that it will work?

Hi Johanna & Mikaela,

Please turn off the grouping of files (CSS and JS) option and the minification of CSS and JS, the CSS and JS resources from the theme is already minified.

Then clear all your caching plugins to make sure your site cache is regenerated with the new settings.

Cheers!

Hi, do you mean that I should turn off grouping of files (CSS and JS) option and the minification of CSS and JS? When I do that the pagespeed gets slower and the requests gets higher. That is why I want to exclude the blogscript if that is possible.

This is with the boxes checked:

Hi There,

There are several CSS and JS shouldn’t be minified as they are already and few of them should us as it is.
I giving you the list of file which needs to be excluded from magnification.

  1. wp-content/themes/x/framework/js/dist/site/x-body.min.js
  2. wp-content/themes/x/framework/js/dist/site/x-head.min.js?
  3. wp-content/themes/x/framework/js/dist/site/x-icon.min.js
  4. wp-content/themes/x/framework/legacy/cranium/js/dist/site/x-body.min.js
  5. wp-content/themes/x/framework/legacy/cranium/js/dist/site/x-head.min.js
    Also here is the list of the JS files of the Cornerstone which should be excluded:
  6. wp-content/plugins/cornerstone/assets/dist/js/site/cs-body.js
  7. wp-content/plugins/cornerstone/assets/dist/js/site/cs-head.js

Those files are not much never affect on page speed. Please confirm the particular JS or CSS . is causing the page speed issue.

Thanks

Hi,

Now I have unchecked the JS boxes, and the reguests are high and the page is slower

Do you want my login details and look for yourself? The page is live now so I don´t want to turn of the JS box to long.

Hi Wilja,

I can’t notice any difference on this page when I check “JS” box in Group Files option, the page looks the same to me with this option checked or unchecked, could you please share a screenshot showing what you can see with this option enabled?

Thanks.

Hi,
When the group JS box is unchecked the blog archive is showing but on pingdom it looks like this:

This is with the JS box is unchecked

When the group JS box and the JS minification is checked the blog archive is not showing but on pingdom it looks like this:

This is with the JS minification and JS group box checked

Hi Wilja,

Thank you for the credentials, on the screenshot you provided above.


Please add your Blog page URL to Never Cache these URLs

Also, let’s exclude the theme JS files from being grouped and minified by adding the following URL to the Exclude JS field.

https://kulmedkids.se/wp-content/themes/pro/framework/js/dist/site/x-head.min.js
https://kulmedkids.se/wp-content/themes/pro/framework/js/dist/site/x-body.min.js

Then clear all your caching plugins to make sure the site cache is regenerated with the new settings.

Hope it helps,
Cheers!

Hi,

No it didn´t help :frowning: did you try this and it helped?

Hi,

I went ahead and excluded these js files and can see the posts are showing up.

https://kulmedkids.se/wp-content/themes/pro/framework/js/dist/site/x-head.min.js
https://kulmedkids.se/wp-content/themes/pro/framework/js/dist/site/x-body.min.js
https://kulmedkids.se/wp-content/themes/pro/framework/js/dist/site/x-icon.min.js
https://kulmedkids.se/wp-content/themes/pro/framework/legacy/cranium/js/dist/site/x-body.min.js
https://kulmedkids.se/wp-content/themes/pro/framework/legacy/cranium/js/dist/site/x-head.min.js
https://kulmedkids.se/wp-content/themes/pro/cornerstone/assets/dist/js/site/cs-body.js
https://kulmedkids.se/wp-content/themes/pro/cornerstone/assets/dist/js/site/cs-head.js

No need to minify these files as they are already minified by default.

Thanks

Hi,

Not working for me, I can see it if I am logged in on kulmedkids.se/admin but not when I am logged out. Is it working on your mobil?

The header and footer menue on mobile does not work either

I had to remove the links on Breeze now because the menue isnt working.

https://kulmedkids.se/wp-content/themes/pro/framework/js/dist/site/x-head.min.js
https://kulmedkids.se/wp-content/themes/pro/framework/js/dist/site/x-body.min.js
https://kulmedkids.se/wp-content/themes/pro/framework/js/dist/site/x-icon.min.js
https://kulmedkids.se/wp-content/themes/pro/framework/legacy/cranium/js/dist/site/x-body.min.js
https://kulmedkids.se/wp-content/themes/pro/framework/legacy/cranium/js/dist/site/x-head.min.js
https://kulmedkids.se/wp-content/themes/pro/cornerstone/assets/dist/js/site/cs-body.js
https://kulmedkids.se/wp-content/themes/pro/cornerstone/assets/dist/js/site/cs-head.js

Hey @Wilja,

I see that it’s working when you’re logged in and not when logged out. That happens maybe because your caching / performance plugin does not cache and minify resources when you’re logged in. I was not able to prove this because I could no longer access your WP Admin maybe because you changed the credentials as I was investigating.

The issue in the front-end is this.

The blog masonry script which is in VIEWS/GLOBAL/_SCRIPT-ISOTOPE-INDEX.PHP (not in the JS files listed previously) requires jQuery to be loaded in the head because it is loaded in the body part. Because of your optimization (grouping and minification), jQuery (combined and minified along with other JS) now is loaded at the very bottom of the page.

Please load the jQuery in the head and see if the issue persists. You might need to contact the caching / performance developer for this.

Also note that this is not an issue with X, though there is a performance benefit loading all JS in the footer, generally, it is not feasible because some jQuery functionality is needed to be used in the body. That is true not only for X but for many other plugins as well.

Thanks.

Hi,

Ok, thank you for your answer.

We have to check with the caching / performance developer and will come back to you if further questions.

Have a nice day!

Regards,
Mikaela

Hi Mikaela,

Thanks! feel free to keep us updated anytime.

Hi,

I would like to find the blog masonry script that you said was lying in VIEWS/GLOBAL/_SCRIPT-ISOTOPE-INDEX.PHP I cant find that file, can you help me?

Hi,

You can check in pro/framework/views/global/_script-isotope-index.php

Thanks

Hi Paul,

Ok, so it is the code below?

Regards,
Johanna

<?php // ============================================================================= // VIEWS/GLOBAL/_SCRIPT-ISOTOPE-INDEX.PHP // ----------------------------------------------------------------------------- // Isotope script call for index output. // ============================================================================= $is_rtl = is_rtl(); ?>