Hi,
I want to set and test Newspaper in MAMP before to export it online.
My website has got over 4000 post and I exported my sql database and import it in mysql of MAMP: all fine. I didn’t export upload folder of WP.
So I’m using Newspaper on MAMP but it doesn’t load pictures/images uploaded on my website (online).
I’m italian so I hope you can understand more with this picture:
http://oi66.tinypic.com/263h2iu.jpg
If I replace all “http://localhost:8888/” after srcset attribute with my webdomain, Newspaper and MAMP can load pictures hosted on my online website.
So, how can I do that automatically to see all images on Newspaper offline and test it better?
I don’t want to export my uploads folder: it’s over 5 GB.
Hope you can help me, regards.
Hello Jad,
Please notice that you will have to edit the function will get the srcset and sizes, look like in this image here -> http://screencast.com/t/bFjXL8tTuw (you will have to add the line code that appears in blue box in my screenshot) and then, the function will return nothing and the browser will use the link from src source. Otherwise, if you want to keep the scrset and sizes, you will have to use the search and replace method for all variables which contain the URL’s -> http://screencast.com/t/0ntcqi51xlc You will have to replace that link -> http://localhost:8888/MR/ with http://www.melarumors.com/ and then you have to find a PHP function which does this task, for example here -> http://www.w3schools.com/php/showphp.asp?filename=demo_func_string_str_replace.
Please notice that is not a simple task and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom services at the moment, sorry!
Hope this helps!
Thanks for your understanding!
Hi, thanks for reply.
Your instructions help me to get image into blogpost, but not on category pages.
See attached image, how can I solve it?
http://oi68.tinypic.com/rl94qd.jpg
Thanks a lot.
Regards
I’m testing NEWSPAPER offline with MAMP.
My website is melarumors.com
Hello jad,
For category pages, the theme uses modules to render the posts and therefore, is a function that brings the posts source on the page, like this -> http://screencast.com/t/RKI5hDgA -> http://screencast.com/t/Qgto3EgkkWrG You will have to change the source URL, using the string replace, like this -> http://screencast.com/t/w0y3Xv2csdiJ
Hope this helps!
Thanks.
Hello
I have come up with a weird scenario. On my website http://coloradowebsite.design/dev/Leafbuyer/blog/ …. some of the images are showing the srcset tag for thumbnails while some are not. Can you please help me to understand why is this happening? I want srcset tag for all the images on my website.
Thanks
Jesse
Hello Lasyte_Solutions,
Please provide some screenshots with this issue so I will be able to investigate it closer. Notice that we do not have any bad reports in this case and we recommend to update the theme to the latest version of it via FTP way.
Thanks for your understanding!
Caitlin,
Thank you for your prompt response. I have attached three screen shots. The issue we are having is for certain sections it is rending the full size image instead of the small displayed size. For example, it’s loading the full size 1000 x 900 pixel image. Instead of a 200 x 180 thumbnail. If you have come up with a theme fix, or how I can manually fix the HTML / CSS /JS code in the theme. Thank you.
Screenshot of correct Code: https://prnt.sc/imyjys
Screenshot of incorrect Code:https://prnt.sc/imykj3
Screenshot of incorrect Code:https://prnt.sc/imykv4
Thanks
Jesse
Hello Jesse,
I have inspected your screens and I saw that thumbnails are do not exist in our theme, sorry! Should look like this -> https://www.screencast.com/t/Qn7obp1oso Please ensure that you are using the latest version of the theme, installed via FTP way, remove all of the untested plugins (WP Autoptimize, WP Rocket, etc) which can break the theme functionality, clear all the caches and check the results. Also, check the GD Library option to be enabled on your server.
Thanks for your understanding!
Thank you for the reply. I am implementing the changes as suggested. However, I have come across a weird scenario where my website that is running this theme is showing up over 26 errors when we click on inspect element through a Chrom browser. Can you please help me fix these errors? I am attaching a screenshot of the same.
http://www.screencast.com/t/eLvdL4tjU
Your help in this regards would really be appreciated.
Hello Lasyte_Solutions,
I have inspected your source page and I saw that you get some errors from your console, sorry! It seems that you are using some untested plugins which can break the theme functionality. Please remove all of these, clear all the caches, purge CDN files and check the results. If the problem is still there, I suggest you make a new clean install from scratch via FTP way to another subdomain and check the results.
Thanks for the message!