No search results were found in Documentation!
It happens because there is no td_wordpres_booster.php anymore. You can fix this by removing the following code from your functions.php in your child theme:
if (!defined('TD_THEME_WP_BOOSTER')) {
include TEMPLATEPATH . '/includes/td_wordpres_booster.php';
-
This reply was modified 11 years by
fbengo. Reason: functions.php instead of style.css ofcourse xD
Hi,
Is there a way to override the files in wp_booster folder, because I really need it? I have to make the date formats dynamic so the format will change depending on the module (small modules will get short format. big modules will get long format).
I have updated theme item but when active theme child is shown a few warning codes in the blog and in the administration panel please, can you help me to solve this problem. The lines of code that come out are:
Warning: include(/home/obispadoelalto/public_html/demo/wp-content/themes/Newsmag/includes/td_wordpres_booster.php) [function.include]: failed to open stream: No such file or directory in /home/obispadoelalto/public_html/demo/wp-content/themes/Newsmag-child/functions.php on line 9
Warning: include() [function.include]: Failed opening '/home/obispadoelalto/public_html/demo/wp-content/themes/Newsmag/includes/td_wordpres_booster.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/obispadoelalto/public_html/demo/wp-content/themes/Newsmag-child/functions.php on line 9
I’m not the developer and not associated (other than being a customer), but I removed those lines from the child themes function.php file and it worked. The reason you had issues is because the file td_wordpres_booster has been removed as noted in the changelog: https://forum.tagdiv.com/topic/newsmag-1-1-released-changelog/
Yes, as I said. Normal behavior for the category list on the category pages is to show “related” categories when part of a topic such as “tech’ or “entertainment” or “whatever” … in your case since you have all “master” categories and no sub categories, it shows ALL the master categories since you have no sub categories.
Tech support will need to provide you a fix or option for either not showing ANY topics, or you would need to create sub categories for that to work as shown in the theme demo, and for sites like mine (and many sites) where categories and sub-categories are used.
Put another way: its default behavior is showing all sub-categories in a parent. If there is no sub-category, it’s showing all the parents.
You will need to wait for tech support to be back in tomorrow night/Monday to address possible options for your particular setup. Sub-categories are the “best” way for most sites to group together related topics, and that is how the theme is setup for default.
The only way you can “fix” this that I know of right now, is to create sub-categories for your content; meaning group your existing topics into parent topics. Then when somebody is on a child topic, that list of topics would ONLY then show those other topics in the same child topic list, not ALL the topics sitewide.
Sorry I don’t have a better solution for you.
Hi Emil,
Thanks for your answer. It helps me a lot even if I was looking for a child theme solution, but I have followed your advice for sorting custom post and it works nicely.
Best
Eric
My child theme stopped working after I had updated the theme
Cause of problem:
if (!defined('TD_THEME_WP_BOOSTER')) {
include TEMPLATEPATH . '/includes/td_wordpres_booster.php';
There is no td_wordpres_booster.php in includes anymore! How can I fix this?
Thank you for your reply Lucian. You clarified all that I needed to know and I guess I should probably stay away from Child themes since I’m just using the settings/preferences within the theme at this point. The theme very good without any additional tweaks, and is mainly why I purchased it.
I also appreciate you being thorough about the Child themes and trouble shooting the issue I experience. I reupload the included child theme that came with the newest update, and thought about trying it and purging the cache, so it was good that you covered that so I know for sure what to do if I choose to use the Child theme. I forgot to ask that but I was thinking about it.
Based on what you advise about the Child Theme, I apparently don’t need to use it for this current project, and maybe should stay away from it with other projects since you don’t recommend it anymore.
Thanks again for the detailed reply!
Hi,
I need to order the posts according to a custom type field value (date), is there a way to achieve this and then displaying the posts using a Newspaper module? I mean doing this by changing things in the child theme files only. If not do you have advice for the best solution?
Thanks.
Eric
Hi,
Above all, we are sorry for the inconvenience! We do not recommend using the child theme as this could cause lots of issue if not used right and other than that it doesn’t give the ability to change all theme’s files, just some of them.
The settings and customization you chose within the theme don’t get lost when you updated the theme just the ones which are made directly within the theme’s files which we do not recommend also, so from my point of view a child would help but if not used right it could cause issues also.
So if you don’t plan to make changes to the theme’s files we do not recommend using the child theme and if you do want to make some changes, not loots of them, then we suggest to make the changes in the main theme then make a copy of the modified files and replace them after each update or use the patch we provide, if you update from one version to the next, check the change-log to see if the files you also modified have changed and if not you can leave them like they were and simply update the theme using the patch.
If you don’t use the patch you need to modify the files again after each update.
Moving to the child theme messing up your site issue, please make sure that you use the latest version of the child also provide within the theme’s files that you have downloaded from themeforest.
If still doesn’t work make sure you disable plugins, empty cache, purge files and check again.
Please let me know how this works for you.
Thanks
I backed up the theme, uploaded child theme and activated, and it was okay with the original theme. I updated the Newspaper theme to latest update and that seemed to break the site because it stripped the menu and duplicated logo and messed up the site. I thought this was an issue with the new theme, but it appears to be the combination with the old child theme, because when I activated the main theme it fixed the site, and it appears to have the settings I setup when using the last version of the main Newspaper theme.
Again, I think I would have saved a issues now and in the future if I was advised to start with Child theme when installing.
Going forward is there a way to create a child theme that doesn’t mess up the site? I’m just concerned that updating the main theme in the future will mess up changes I make.
Please Advise.
You can avoid CSS import by not using a child theme.
You can remove query strings by using the functions I have previously recommended for adding to your functions.php file. You can also optimize your thumbnails by editing your functions.php file to set higher compression level for WP, and then run the “Regenerate Thumbnails” plugin.
Add these to bottom of your functions.php file, for one example:
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'jpeg_quality', create_function( '', 'return 50;' ) );
add_action('init', 'myoverride', 100);
function myoverride() {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
You can optimize your site following the documentation for this theme:
https://forum.tagdiv.com/page-speed-guide/
I saw that there was an update available for newspaper and in the updating documentation it says I could lose changes if I hadn’t created a child theme. This has me perplexed because the main installation instructions advised activating the main theme and didn’t recommend using the “child theme”, which it really should have.
I see now that you have a lot of documentation on Child themes but it doesn’t appear to help me now that I didn’t start with it to begin with as I should have apparently. I wasn’t even aware that this was possible and that a child theme is provided with theme, because the install instructions didn’t mention it.
Do I have to make a child theme from the changes I’ve already made and if so how do I go about doing that? I noticed that there are different directories and files include than the original.
Please Advise how I can create a child theme from the already custom theme.
installed shop.
when ordering appears incomprehensible code.
Moreover, it appears only in IE.
In Google Chrome’s OK
ie:
http://s017.radikal.ru/i412/1411/d6/7edff2d60762.jpg
google chrome:
http://s57.radikal.ru/i155/1411/c8/cb9203cbeb45.jpg
this is my func file child-theme
<?php
/* ----------------------------------------------------------------------------
WordPress booster framework - this is our theme framework - all the content and settings are there
It is not necessary to include it in the child theme only if you want to use the API
*/
if (!defined('TD_THEME_WP_BOOSTER')) {
include TEMPLATEPATH . '/includes/td_wordpres_booster.php';
}
//Удаление цветовой схемы
remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
//Редактирование полей в профиле
function modify_contact_methods($profile_fields) {
// Add new fields
//$profile_fields['twitter'] = 'Twitter Username';
//$profile_fields['facebook'] = 'Facebook URL';
//$profile_fields['gplus'] = 'Google+ URL';
$profile_fields['dopplr'] = 'VK';
$profile_fields['delicious'] = 'Battlelog';
// Remove old fields
unset($profile_fields['google']);
unset($profile_fields['evernote']);
unset($profile_fields['dribbble']);
unset($profile_fields['digg']);
unset($profile_fields['blogger']);
unset($profile_fields['deviantart']);
unset($profile_fields['forrst']);
unset($profile_fields['github']);
unset($profile_fields['googledrive']);
unset($profile_fields['googlemaps']);
unset($profile_fields['grooveshark']);
unset($profile_fields['html5']);
unset($profile_fields['lastfm']);
unset($profile_fields['linkedin']);
unset($profile_fields['myspace']);
unset($profile_fields['path']);
unset($profile_fields['picasa']);
unset($profile_fields['pinterest']);
unset($profile_fields['posterous']);
unset($profile_fields['reddit']);
unset($profile_fields['sharethis']);
unset($profile_fields['slashdot']);
unset($profile_fields['spotify']);
unset($profile_fields['stackoverflow']);
unset($profile_fields['stumbleUpon']);
unset($profile_fields['tehnorati']);
unset($profile_fields['sharethis']);
unset($profile_fields['addthis']);
unset($profile_fields['behance']);
unset($profile_fields['tumblr']);
unset($profile_fields['viddler']);
unset($profile_fields['virb']);
unset($profile_fields['windows']);
unset($profile_fields['woordpress']);
unset($profile_fields['zerply']);
unset($profile_fields['paypal']);
unset($profile_fields['yahoo']);
unset($profile_fields['vimeo']);
unset($profile_fields['rss']);
unset($profile_fields['soundcloud']);
return $profile_fields;
}
add_filter('user_contactmethods', 'modify_contact_methods');
//Удаление админбара для всех кроме админа
add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}
//логотип при входе
function my_login_logo(){
echo '
<style type="text/css">
#login h1 a { background: url('. get_bloginfo('template_directory') .'/images/logo.png) no-repeat 0 0 !important; }
</style>';
}
add_action('login_head', 'my_login_logo');
//Теперь нам необходимо сделать так, чтобы логотип ссылался не на сайт wordpress.org, а на наш с вами.
//Тут тоже особо трудного ничего нет, добавляем всего лишь еще одну строку
add_filter( 'login_headerurl', create_function('', 'return get_home_url();') );
//Всплывающую подсказку что сайт работает на WordPress надо тоже убрать, и добавить свою фразу.
//Тут нам поможет эта строка:
add_filter( 'login_headertitle', create_function('', 'return "Brothers in Games - Сообщество любителей поиграть вместе";') );
//убрали лого из админбара
add_action( 'wp_before_admin_bar_render', function() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
}, 7 );
//убрали ненужные виджеты
function shailan_remove_dashboard_widgets() {
// Remove Quick Press Widget
remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
// Remove Incoming Links Widget
remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
// Remove Recent Comments Widget
remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
// Remove Latest Plugins Widget
remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );
// Remove WordPress Blog Widget
remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );
// Remove Other WordPress News Widget
remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );
}
add_action('wp_dashboard_setup', 'shailan_remove_dashboard_widgets' );
//удалили версию из футера админки
function my_footer_shh() {
remove_filter( 'update_footer', 'core_update_footer' );
}
add_action( 'admin_menu', 'my_footer_shh' );
//удалили указание на вп в футере
function remove_footer_admin () {
echo '';}
add_filter('admin_footer_text', 'remove_footer_admin');
//удалили таб помощи сверху
add_action('admin_head', 'mytheme_remove_help_tabs');
function mytheme_remove_help_tabs() {
$screen = get_current_screen();
$screen->remove_help_tabs();
}
//убрали метатег из хедера показывающий использование вп
function fjarrett_remove_wp_version_strings( $src ) {
global $wp_version;
parse_str(parse_url($src, PHP_URL_QUERY), $query);
if ( !empty($query['ver']) && $query['ver'] === $wp_version ) {
$src = remove_query_arg('ver', $src);
}
return $src;
}
add_filter( 'script_loader_src', 'fjarrett_remove_wp_version_strings' );
add_filter( 'style_loader_src', 'fjarrett_remove_wp_version_strings' );
//Hide WP version strings from generator meta tag
function wpmudev_remove_version() {
return '';
}
add_filter('the_generator', 'wpmudev_remove_version');
//скрытие пунктов меню слева от посторонних глаз
add_action( 'admin_init', 'my_remove_menu_pages', 999 );
function my_remove_menu_pages() {
// If the user does not have access to publish posts
if(!current_user_can('administrator')) {
remove_menu_page('bsf-dashboard');
remove_menu_page('wpcf7');
remove_menu_page('edit.php?post_type=explandict');
remove_menu_page('tools.php');
}
}
// get the "author" role object
$role = get_role( 'author' );
// add "organize_gallery" to this role object
$role->add_cap( 'unfiltered_html' );
// убираем инфу о неправильном пароле при входе
add_filter('login_errors',create_function('$a', "return null;"));
// убираем из кода страницы упоминание о Yoast WordPress SEO plugin
add_action('get_header', 'rmyoast_ob_start');
add_action('wp_head', 'rmyoast_ob_end_flush', 100);
function rmyoast_ob_start() {
ob_start('remove_yoast');
}
function rmyoast_ob_end_flush() {
ob_end_flush();
}
function remove_yoast($output) {
if (defined('WPSEO_VERSION')) {
$output = str_ireplace('<!-- This site is optimized with the Yoast WordPress SEO plugin v' . WPSEO_VERSION . ' - https://yoast.com/wordpress/plugins/seo/ -->', '', $output);
$output = str_ireplace('<!-- / Yoast WordPress SEO plugin. -->', '', $output);
}
return $output;
}
Alright, I’ll wait for them and thanks for chiming in. I did get the email with your original edit stating you don’t use the child theme but edit the theme files directly. When updates come through you do what?
Jeff
That doesn’t seem optimum to me. Doable but not optimum. Nonetheless, thanks! I did read that post and presume I’d need to use the child theme. I’m still in the early stages of building this so I’ll worry more about it at a later refinement stage.
Hello Lucian,
This last solution seems very complicated.
We have added the first code, in order to add the post title to the alt tag of the images when it doesn’t exist.
We have added it to the original functions.php file (not in the child theme function.php file).
But as you can see in the code of this old page, is not working:
view-source:http://marronyblanco.com/secadora-prosteam-aeg/
How can we solve it?
Thank you in advance.
Please help me solve this blocking CSS, i hope you will help as possible.
i clarify that i removed all the code (footer css code got through your tagdiv speed optimization techniques) from speed plugin function code. from my website.
after that i getting blocking error from Google page speed insider
http://isolve.isolve.netdna-cdn.com/…uploads/js_composer/custom.css?ver=4.3.4
http://isolve.isolve.netdna-cdn.com/…t-form-7/includes/css/styles.css?ver=4.5
http://isolve.isolve.netdna-cdn.com/…ernal/bootstrap/td-bootstrap.css?ver=4.5
http://isolve.isolve.netdna-cdn.com/…themes/Newspaper-child/style.css?ver=4.5
http://isolve.isolve.netdna-cdn.com/wp-content/themes/Newspaper/style.css
after tried on different ways, i failed please help me!!
-
This reply was modified 11 years by
howtoisolve.
-
This reply was modified 11 years by
howtoisolve.
Hi,
First please make sure you are uploading the right .zip file because the .zip file you get is this: http://screencast.com/t/Q0SZ8ZUcTd which contains all theme files like ../plugins/a patch which you use to update from the previous version/ documentation/ licensing/ child theme... so this is not the right theme file you need to upload, this one is: http://screencast.com/t/OiXSsFHEj0
So please make sure you unzip the Newspaper-ft.zip file and upload the Newspaper.zip file and upload the theme again.
Secondly please try to add the theme files manually via FTP, and follow this guide on how to do it: https://forum.tagdiv.com/installation/
Please let me know if this helps!
Thanks
Hi,
1. The theme doesn’t have an option for that an you can change it via custom css for all menu items, follow the topic form the URL as I have posted a solution on how you can do this here: https://forum.tagdiv.com/topic/several-issues/
You can do it for individual menu items but it will not be easy and you need custom work for that.
2. Like this: https://forum.tagdiv.com/topic/ad-on-homepage/#post-24051
3. With this css: http://screencast.com/t/SKMarcdAd4
.block-child-cats a {
font-size: 18px;
}
4. Can’t recommend you one as we haven’t made tests with none, you can search online and test it to see if it works.
5. You need a plugin for that, not sure which one it’s used on the site you have provide the screenshot but you can try to find one online: http://www.bloggingwizard.com/top-wordpress-social-sharing-plugins-2014/
6. You can try to edit the td_module_blog.php file and change this: http://screencast.com/t/8P4veeALzl1L as the theme panel dosen’t have an option for this.
7. Can’t recommend any plugin that dose that, I suggest you do a google search and find one online.
8. You have to use that plugin if you want a similar functionality as the theme doesn’t have an option like that for the comments box.
9. Just add your gif image to your post using “add media” the same way you upload and add a normal jpg image: http://screencast.com/t/nkrXbZQbWHt
10. Replied here!
11. You can use the same method offered for the big slider’s big image and change the css for other images as you like using this @media css snippets to target just the mobile screens:
/* responsive phone */
@media (max-width: 767px) {
/* add you css code here */
}
If you don’t have any html/css basic knowledge and don’t know how to do this we suggest you to hire someone to help you with it as this needs custom work and we cannot offer any type of custom work at this time because we work hard on development, updates, fixes and support and we don’t have time left. You can also get a freelancer from sites like: http://studio.envato.com/ if don’t have anyone to helps you with this.
12. Unfortunately I can’t helps with this also as I can’t recommend you any. You should search for a similar one online.
13. This is a block 1 widget and you can change it from appearance > widgets > then go to the sidebar you use there and search for block 1 widget then for “custom title filed” and change the title like this: http://screencast.com/t/mSQHBYBG8w
14. Via custom css using this custom css in theme panel > custom css filed: http://screencast.com/t/HO4TJR2yc
.prev-post div, .next-post div {
font-size: 33px;
}
15. Use this css: http://screencast.com/t/uQNePflX
.next-prev a {
display: none;
}
16. Unfortunately the theme doesn’t have a feature like that, you can try to find a plugin that dose that or you could use our social sharing buttons, add them there and use css to style them. You will also need custom work for this.
17. You can edit the post template file you are using and move this line, like this: http://screencast.com/t/OqnqyBtd and then use css to style it as you like. We suggest to get someone to help you with this if you don’t know how to do it.
18. The theme is already responsive build so I’m not sure what your issue is, please provide more details.
19. You can remove the underline for title on hover via css like this: http://screencast.com/t/4cxK85zYOuX
But to change the color when hovered to the category the post is part from you need more css and custom work.
.td_mod_wrap .entry-title a:hover {
text-decoration:none !important;
color: red;
}
20. You can your answer here: https://forum.tagdiv.com/topic/show-category-name-in-homepage/
Thanks
Hi
yeah. The only reason to use a child theme is if you plan on hacking things and don’t want to re-hack them on theme updates, which I actually prefer to do.
If you look at the theme activation page, you would only be running the “child” theme if you expressly activated it. If you didn’t do that and are running the “parent” theme, then this has no impact on what you’re doing at all.
Meaning, the child theme doesn’t work automatically, only if you expressly activate it from the WP theme panel. If you’re not using it, you could delete it, but if you ARE using it, you would want to switch back to main (parent) theme before deleting it.
For info on what child themes are all about, the WP codex/docs
http://codex.wordpress.org/Child_Themes
Thank you.
I’m not sure how ‘child themes’ work, so i don’t touch it. To disable child themes, do i just delete the theme (in Appearance – Themes) called ‘Newspaper Child theme’? No code editing?
Thanks 🙂
Might be. But of course the theme works perfectly with that plugin. So, it would likely be another plugin conflicting. This is also more common with child themes since the CSS is being “redirected” to the parent. Which is why I stopped using child themes couple of years back. Annoying as heck.
You could obviously try disabling the plugins then reactivate them one by one, to see what is doing what.
There are also a couple of good plugins you can run to see which of the plugins is using the most resources or slowing things down (I posed this couple of times this month, not sure – you’d have to search for that … if this were my forum I would probably add a list of “useful plugins for running a WP site….”).