My google search is working perfectly!. I don’t need another tutorial to do that. I need to know how to disable the default behavior of seek when anybody press a key in the search field of the Newspaper Theme. Because it is only a background task that is shooted while you are writing in the search input field. I could see that in my linux logs files of the mysql.
Only when the user press the search button or Enter Key begin the search with google search, but before that you have 3 or more SQL queries to the database when the user is typing what to search.
We have 30.000 visit per day and this queries are generating a lot of unnecessary load in my server.
If you want, you can see the ajax queries shooted, in the code inspector of chrome.
Rregards.
The LIMIT is really big!!!
Hi Bordan, Thanks for your time,
Please I need a specific answer. I need to know if it is posible to know which user actions will generate the next db queries in newspaper.
Thanks
.
Hi Alin,
If i copy index.php to Newspaper-child folder, do you think i can do this trick here?.
Thanks.
Hi,
I tried to make an Upgrade from 7.1.1 to 7.3. But it was a bad idea because after update i found with a lot of issues in practically everything. (then of this i saw myself forced to make a downgrade to 7.1.1 again)
Issues:
- Website logo is disappeared
- Ads sections disappeared from all the site.
- Footer with default configuration. Without any logo
- No favicon
- In the single post page i saw the sidebar in blank
- Read counter in every block of the index enabled. (It was disabled before).
- Default grid configuration in Categories. (i hadn’t had a grid before)
And then, looking for change the template settings, i could see all the fields in blank with “no logo, no favicon, etc”. It seems the upgrade reset all my configuration.
Details of my theme: I have a child theme with a few customizations.
This was caused by a bug?.
Thanks.
-
This reply was modified 10 years by
news_lp_client.
Hello Catalin,
Yes you are right, I am using a Theme child, and i could fix it. The problem was in the “header.php” and “header-menu.php” files. It seems like you added a new styles there. I have updated these and now is working like a charm.
Thanks.!
i have noticed too, that the mobile logo isn’t showing in the mobiles versions. This should switch with the mobile logo and it isn’t happening. I fixed it for now with custom styles but i need a better solution.
Thanks.
Hi Catalin,
I am needing more data for the ads to get reports with clicks, impressions, etc. With Google ads it is possible to get this in the adsense panel. But with custom ads in this theme we can’t get this.
And Another thing, we are needing give access to a user without admin privileges, add a banner without take control of the wordpress newspaper admin panel.
There are some plugin for this kind of things?.
Best regards
Hi Chris, Yes!! Your solution is that i am looking for. Thanks.
I have a little trouble with the image regeneration. Could you help me?.
The sizes that i am using in the index are:
Block 4 = 250 X 160
Block 16 = 218 X 150
Block 1 = 100 X 70 and 324 X 235
Block 7 = 100 X 70
Block 14 = 356 X 220
Then, the first i do is:
1) in the setup MEDIA Thumbnail sizes i put the following:
Small : 100 x 70
Medium: 250 x 160
Big : 356 x 220
2) Then i run the “Regenerate Thumbnail plugin” and i could see this..
Debugging Information
Total Images: 67
Images Resized: 0
Resize Failures: 67
function (){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
And the last line is repeated a lot of times.
The good thing is that when i go to see the index, all images are now with perfect size.
But, finally, i must edit a news, and when i press <Save> appear the “white windows of death”, with this errors:
Warning: imagecreatetruecolor(): Invalid image dimensions in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php on line 2130
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/class-wp-image-editor-gd.php on line 198
Warning: imagecreatetruecolor(): Invalid image dimensions in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php on line 2130
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/class-wp-image-editor-gd.php on line 198
Warning: imagecreatetruecolor(): Invalid image dimensions in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php on line 2130
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/class-wp-image-editor-gd.php on line 198
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php:2130) in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-admin/post.php on line 242
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php:2130) in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/pluggable.php on line 1207
The first that i have checked is if the GD library is installed. But YES!.. It is in my phpinfo.!
Searching in google i saw that the thumbnail must be in certain size or the resize isn’t work.
how it work?. How i can setup my own sizes?.
Regards.
Hi,
I zink, i am using the last version 6,4. I must check if visual composser updated.
Would you try fill the field with 6 videos?.
Thanks.!
Thanks!! it is working now!!.
Best regards.
Hi Alin,
I’m using a child theme. But there are a few modifications.
These are my files:
Download Theme_child and plugin
All the files in theme folder don’t have relationship with the “custom post type” section. The CPT section “cinema” is created by the plugin zipped.
i checked all the the settings of the newspaper theme and i can’t find the problem.
If you want i can send you the export of my settings.
Thanks!.
Hi Alin, i have installed a clean wordpress, with clean Newspaper theme downloaded from themeforest.
Then, i imported the newspaper config and posts, etc. But the big image is still there.
Can you tell me is there is something to test?
Thanks!
May be (for the correct visibility of styles) you need add this to your host file.
190.105.182.5 http://www.laarena.com.ar —-> without “http://”
-
This reply was modified 11 years by
news_lp_client.
-
This reply was modified 11 years by
news_lp_client.
Hi Emil, thank you for your answer. I need to save “td_subtitle” inside the array “td_post_theme_settings”.
What is the syntax using update_post_meta() function?.
Thank you.
Here another image:

Hi,
Like you say, The subtitle field key is td_subtitle.
If I want to fill this field from a plugin to import news, i do this:
add_post_meta( $ID_post, 'td_subtitle', "Hola Mundo." );
But, the field doesn’t fill. This appear empty; and you can see a new custom field called “td_subtitle” too.
The question is: What command function i must use to import in the td_subtitle custom field theme.
You follow me?
if I insert the metadata, the field “subtitle” fill with an empty value. But the field is added like an extra custom field. You can see this in the picture.
This is my code,
add_post_meta( $insertar_noticia_ID, 'td_subtitle', utf8_encode($pretituloTxt) );
And this is de result:

Are you forgetting something?
Thanks!.
Hi Alin, and is possible editing the php code directly in some file ?
Thanks.
