Thanks Lucian!
I created a function in my child theme so that I don’t have to modify the original theme.
function childtheme_remove_filters(){
remove_filter( 'shortcode_atts_gallery', 'my_gallery_atts_modifier', 1 );
}
add_action( 'after_setup_theme', 'childtheme_remove_filters' );
Works like a charm!
I’ve got a little problem with the gallery tag. I’m using a shortcode inside my child theme to show all attached images of a post under my main content:
[gallery size="td_1021x580" columns="1" order="ASC"]
The thumb size is activated in the theme panel. I confirmed the files exist, eg 80e9618a197960e0219ff0438b1da004-1021×580.jpg. But, when loading the page the full image is displayed (80e9618a197960e0219ff0438b1da004.jpg). Any idea what the problem can be?
I think you would have a few issues with this, based on my own past experience. We use isotope on our business site (not using WP for main static content).
1) obviously you would need to upload the .js file to the theme folder, or your server
2) you would need to call the .js file for it to actually load the script
3) then you would have to place the elements into the theme file(s) where you would use the library.
4) this kind of thing doesn’t always work well with child themes, from my own experience due to the css redirects and such.
This plugin for WordPress might be helpful, perhaps not
http://mintthemes.com/isotope-for-wordpress/
Most people using isotope with WP are building their own themes and not patching it into a theme which already has a complex page builder, framework and shortcode system.
however, this old topic on adding it might prove useful
https://wordpress.org/support/topic/using-isotope-with-wordpress
-
This reply was modified 11 years by
simchris.
Hi,
You have to upload version 4.6 over the existing theme (2.1.3) and select overwrite all files. If you modified some of files using the child theme and those files were modified by us you also need to update them in the child theme and reapply the custom code. The theme code changed a lot since version 2.1.3, use this guide – https://forum.tagdiv.com/how-to-update-the-theme/
Backup the entire wordpress directory and the database before you update. In case something goes wrong with the update you can use the backup to revert to the previous state.
Here are some information on how to make the backup – http://codex.wordpress.org/WordPress_Backups
You basically just need to save the database and copy the entire wordpress directory on your hdd.
Thank you, Emil G.
-
This reply was modified 11 years by
Emil G.
Hi,
I would like to add a custom script from Isotope (url: http://isotope.metafizzy.co/). I tried to add this to functions.php as a shortcode but I’m getting a white screen. In which php file is it possible to add custom scripts for shortcodes? Or I can add this by a custom .js file? Preferably in the child theme, so I don’t need to add it after every update.
Thanks in advance.
Hi,
To do this you also need to edit the functions.php file and change the add_image_size function with the thumb size you need, like this: http://screencast.com/t/u2h99TI4P then regenerate thumbnails. Please make sure that you make a back-up of your current theme installation then make this changes to the main theme and check if this works.
If it doesn’t work please make sure that you use the child theme provided with the theme files and also make sure that you the child theme right: https://forum.tagdiv.com/child-theme-documentation-newsmag/
Hope this helps, please let me know!
Thanks
How to update the theme “Newspaper” version 2.1.3 to the latest version 4.6?
I use a child theme.
I would be grateful for any tips?
I’d like to change the width on the Module 11 thumbnail size. I have already updated my custom css to move the title and excerpt more to the right and I have also updated the Module_11.php and added it to the child theme with the new dimensions but when I do that it breaks the images. Even using thumbnail regen didn’t fix the issue.
I have also tried adding the correct code to the child theme functions.php but the images are still broken. I assume there might be another .php I didn’t update or havent updated the child theme functions.php correctly.
Could you point me in the right direction please.
My desired thumbnail size would be 267×178 for the module 11 thumbnails.
You can view the test site at http://test.sneakerbardetroit.com.
Thank You
Hi,
Unfortunately the td_wordpres_booster.php file isn’t editable via child theme, only the files listed in the documentation can be edited using the child theme: https://forum.tagdiv.com/child-theme-documentation/
Sorry for this, thanks for the message!
-
This reply was modified 11 years by
Lucian.
Quick question: can td_wordpres_booster.php be edited in a child theme?
Hi,
1. I’m not sure what your issue is so please provide more details about it. You could also determine if this is related to the child theme use by switching to the main theme and notice if something changes. We also had some issue with the child the in the previous them versions but we have fixed them in the latest version of the theme(1.2) so please make sure you also updated the theme and the child theme also and let me know if this still happens.
2. You can activate and use the speed booster provided with the main theme.
3. Please use this custom css in theme panel > custom css filed:
.page-nav .pages {
display:none;
}
4. Not sure what issue you have with this, please provide more details, a screenshot would also help.
5. You can do it form appearance > menus and build your own footer menu: http://screencast.com/t/7e9BrB9zPqmz
You can also see more info about the footer here: https://forum.tagdiv.com/footer/
Hope this helps!
Thanks
Hi,
Please give us wp-access so we can check this and send your wp-admin user and pass at contact@tagdiv.com and specify your issue details or provide a link to this tread.
Please also make sure that you use the latest theme version which is 4.6 so update your theme then also make sure you update the child theme also then check again.
Thanks
Hi,
Thanks for reporting this! I have added this on our issue tracker list, we will investigate this and fix it as soon as possible. Until then you can use the main theme or try to use wp_enqueue_style() to enqueue the parent stylesheet into child theme.
Sorry for the inconvenience!
Thanks again for reporting this.
Yes Sir i did.
i copied all from style.css of main theme and pasted in child theme’s style.css , below comment
/* —————————————————————————-
Your custom style…. here 🙂
*/
still distrubed.
please have a look
http://akhbarworld.com/
Did you used the original “newspaper-child” theme with including the css from the original?
Whenever i activate child theme the whole layout is disturbed. What to do?
http://akhbarworld.com/
Hi again,
ok, after setting up a demo site and comparing them, I figured out that the problem is the child theme.
I configured the child theme as proposed in http://codex.wordpress.org/Child_Themes. This page explicitly says: “@import should not be used to import the parent stylesheet into the child theme.” simply because it’s bad for performance.
However, you propose in https://forum.tagdiv.com/child-theme-documentation/ to use import – and actually that’s the only way how it seems to work.
Is there any way to create a child theme but avoid @import in the child css?
BR
Hello i have some question
1. my wp-admin have delay and slow after , because i use child-theme ? i ask my host provider tell me because theme i’m not sure because child theme . please explain me.
2. why child theme don’t have tagDivd speed booster plugin.
3. how to remove this >>> http://i1376.photobucket.com/albums/ah8/ap092315/Untitled_zps0b1187d4.jpg
4. why my contactform7 can’t paste on default page after paste on default page contactform7 will full width page .
5. How to add menu like this >>> http://i1376.photobucket.com/albums/ah8/ap092315/Untitled1_zpsd814562f.jpg
Hi,
You can use this css for the width issue: http://screencast.com/t/tuAWXPP4
.td-pb-padding-side {
padding: 20px 0px 0px 0px;
}
You can use this guide: https://forum.tagdiv.com/child-theme-documentation-newsmag/
Hope this helps!
Thanks
I just want to say it took me all night but I am proud I made it this far..
I am just getting used to the Page Inspector tool in firefox that is helping me identify things better. I modified the .php file for template 7 and I have gotten extremely close to what I want..
Check it out!
However, I would like it’s “width” to be a little longer. If you go to the page you can see what I’m talking about. It should be a bit longer. I’m not quite sure how to accomplish this?
Also..
I will need to learn more on how a “child” theme works so if I ever upgrade these changes I make won’t be lost…
-
This reply was modified 11 years by
Dinozero.
I found this post: https://forum.tagdiv.com/topic/child-theme-2/ and followed the instructions. Removing the line in functions.php solved all of the warnings.
Sorry I didn’t read that first!
I also have the exact same set of error messages on my site, except for the different domain. Fresh WordPress install, only Newsmag and Newsmag-child themes installed. This is the second install that has failed.
The first install I went ahead and began installing the plugins, thinking that might be an issue, but that threw error messages requiring a wipe and reinstall (in a completely different directory).
FWIW this is a standard installation of WordPress through my host using Softaculous.
Hi,
After I installed the child theme I have these eror in the dashborad
Warning: include(/home/katsdeli/public_html/review/wp-content/themes/Newsmag/includes/td_wordpres_booster.php) [function.include]: failed to open stream: No such file or directory in /home/katsdeli/public_html/review/wp-content/themes/Newsmag-child/functions.php on line 9
Warning: include() [function.include]: Failed opening ‘/home/katsdeli/public_html/review/wp-content/themes/Newsmag/includes/td_wordpres_booster.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/katsdeli/public_html/review/wp-content/themes/Newsmag-child/functions.php on line 9
Warning: Cannot modify header information – headers already sent by (output started at /home/katsdeli/public_html/review/wp-content/themes/Newsmag-child/functions.php:9) in /home/katsdeli/public_html/review/wp-includes/option.php on line 750
Warning: Cannot modify header information – headers already sent by (output started at /home/katsdeli/public_html/review/wp-content/themes/Newsmag-child/functions.php:9) in /home/katsdeli/public_html/review/wp-includes/option.php on line 751
Please can you let me know what the problem could be.
tiny.cc/tagdiv
@import url("../mydr/style.css");
.footer-text-wrap {
color: #444;
}
.td-footer-container a {
color: #444;
}
.td-footer-container .block-title > a, .td-footer-container .block-title > span {
background-color: #3967c1;
color: #fff;
}
.widgettitle {
background-color: #3967c1;
}
This is all code I have put in style.css of child theme, because I was not able to set these things in the theme options panel
Hi,
@fbengo Unfortunately using child theme you can only change this files: https://forum.tagdiv.com/child-theme-documentation-newsmag/ and if you need to make changes to the files located in the wp_booster folder you need to change the main theme’s files.
Sorry for the inconvenience!
Thanks