Search Results for 'child theme'

    No search results were found in Documentation!

Results from the Forum
Alin [tagDiv]
tagDiv Staff

Hi,

Please make sure that if you use child theme, it is the same version like the main theme, also you can check the Speed Booster version and update it to the latest version provide with the themehttp://screencast.com/t/Zkr4bRnV0K

Thanks!

jjmail
tagDiv Member

I think I am part way there.

With the help of the example in the API documentation, I have code for the new thumbnail, block and module, and have put what I thought was the correct code in the td_api_plugin.php (links to all code below)

1) The new block initially appeared in the visual composer but when used, and I tried to view the page, it gave a 404 error.

2) I directly edited td_page_builder_widgets.php to include the new block. The new block initially showed in the widgets but when used in a sidebar there were NO images on the page (the featured image also disappeared).

I didn’t know if I should reactivate the plugin after changes so tried to do so and now consistently get the following, and the widget of the new block is no longer available in the list:

wp booster error:
td_api_base::mark_used_on_page : a component with the ID: jc_block_7 is not set.
/homepages/8/d453795254/htdocs/SiteHome/wp-content/themes/Newspaper/includes/wp_booster/td_wp_booster_functions.php

Links to code:
https://dl.dropboxusercontent.com/u/4800576/TagDiv%20questions/jc_block_7.php
https://dl.dropboxusercontent.com/u/4800576/TagDiv%20questions/jc_module_6.php
https://dl.dropboxusercontent.com/u/4800576/TagDiv%20questions/td-api-plugin.php

I would really like to see where this code is wrong please to help my general understanding, but I have found an alternative solution for this particular need.

td_block_21 also uses square images but in the theme is not in the widgets list. Having now found the way to get blocks in the list I put the block 21 in there and works great. I assume I cannot edit this file via the API or child theme? A direct edit is not ideal even though it is a simple one.

Thanks

jjmail
Participant
#0

I am using TagDiv block 7 in a sidebar widget but need to customise it to use square thumbnails.
I have already done a similar edit for the mega-menu so I know how to create the new thumbnail size and how to create a new block (7sq) in config.php.
I was expecting to then create a td-block-7sq.php but, unlike the mega-module I edited previously, the td_block_7.php does not seem to refer to a thumbnail size – What am I missing? should I be creating a new module?
I think I am not correctly understanding the structure of things. Are you able to explain?

(I am actually doing the edits via API and a child theme but assume if I understood how to do direct edits I can work out this side of things 🙂 )
Thanks

Alin [tagDiv]
tagDiv Staff

Hi,

You can find the child theme in the /code folder in package that you download from themeforest and please check child theme documentation – https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks!

Lucian
tagDiv Staff

Hi,

The child theme functions file doesn’t overwrite the main theme’s one, that is the standard child theme functionality, you have to set a higher priority for the hook that alters the product number, like this: http://screencast.com/t/AnYuIV53k add that 11 precede by a comma like in the screenshot then test again.

Thanks

barnisayz
Participant
#0

Hi,
How can I create a child theme for Newspaper? Do I ned to add functions.php, footer.php, header.php tot he child theme?

Regards

lewisr90
tagDiv Member

OK great,

A bit new to this but I moved this code into my functions.php in my child theme, changed the number and it didnt work.

// Number of product per page 6
add_filter(‘loop_shop_per_page’, create_function(‘$cols’, ‘return 15;’));

if (!function_exists(‘woocommerce_output_related_products’)) {
// Number of related products
function woocommerce_output_related_products() {
woocommerce_related_products(array(
‘posts_per_page’ => 3,
‘columns’ => 3,
‘orderby’ => ‘rand’,
)); // Display 3 products in rows of 1
}
}

My question is, how do i change this without it not changing in a future update. Do I have to move the whole of the functions.php into the childtheme folder? If I did would your future updates still work?

Alin [tagDiv]
tagDiv Staff

Hi,

Please make sure that you use the latest version of Visual Composer, install and activate it from here – http://screencast.com/t/sICGwGTQXQTh and check the version – http://screencast.com/t/pSDK3ooFurWV If you need to update the Visual Composer plugin, please delete the old plugin and update the latest version. Also remove the Child theme for version 4 and upload the version provided with the theme files, you can find it in /code folder. Please note that this is an upgrade, Newspaper 6 should be regarded like a new theme and custom modifications, custom css from version 4 will not work anymore and you will have customize it again, but were added many features in this version(blocks, modules, sticky sidebar..) so I guess that it worth the update. Let me know how it goes!

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Please try this custom css in Theme Panel > Custom Css:

.td_block_slide .td_module_slide {
visibility: hidden !important;
}
.td_block_slide .td_module_slide:first-child {
visibility: visible !important;
}
.td-js-loaded .td_block_slide .td_module_slide {
visibility: visible !important;
}

Thanks!

schindyguy
Participant
#0

V.444 update to V.6

-Deleted “themes/Newspaper”
-Uploaded “/Newspaper”
-Updated included plugins
-Clear Cache

Fatal error: Call to undefined function vc_column_offset_class_merge() in /nas/wp/www/staging/moderntips/wp-content/themes/Newspaper/vc_templates/vc_column.php on line 22

Any help would be very appreciated, I have been slamming my head off the wall trying to get this thing updated.
Happy to apply any tests.

Also Warnings
Warning: include(/nas/wp/www/staging/moderntips/wp-content/themes/Newspaper/includes/td_wordpres_booster.php): failed to open stream: No such file or directory in /nas/wp/www/staging/moderntips/wp-content/themes/Newspaper-child/functions.php on line 9

Warning: include(): Failed opening ‘/nas/wp/www/staging/moderntips/wp-content/themes/Newspaper/includes/td_wordpres_booster.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in /nas/wp/www/staging/moderntips/wp-content/themes/Newspaper-child/functions.php on line 9

Lucian
tagDiv Staff

Hi,

Theme’s wp_booster is built in the theme and it customizes WordPress’s booster.
Not sure what you mean, the theme not only adds customized blocks, but those blocks are built using modules and so on. You can edit the post templates or other templates and the blocks and read the comments to find out how the code is structured and you can sue theme’s child theme system or API to customize some files without having the main theme files altered, here is a guide on this: https://forum.tagdiv.com/child-theme-documentation-newsmag/
Hope this helps!

Thanks!

Lucian
tagDiv Staff

Hi,

As you can see in this guide here: https://forum.tagdiv.com/the-child-theme-support-tutorial/ we don recommend anymore the use of theme’s API from the child theme so you should be careful if using it, other than that you can still use it as it is.

It dons’t matter if the what name you use for it as long as you use the same name as the theme is in the child theme style file: http://screencast.com/t/wvrhfqKFG49e

Thanks

Alin [tagDiv]
tagDiv Staff

Hi,

Please make sure that your child theme version is the same with the version of the main theme 6.3 and also I see that you have custom modification for subfooter – you have changed the span there and you don’t have td-sub-footer-copy class anymore how it should be – http://screencast.com/t/jS4kae8P4 it should look like this – http://screencast.com/t/JKPzyiIJ

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

It is specified in the documentation how to update your theme(A, B, C) – https://forum.tagdiv.com/how-to-update-the-theme-2/ and also check this video for FTP update(if you update via FTP) – https://forum.tagdiv.com/install-via-ftp/ you will not lose any customizations, settings from Theme Panel, but the files modifications will be lost as all the files will be overwritten. If you use child theme for files customizations you will have to check update_log.txt file for each update and see what files had been modified so if those specific files are used in the child theme you will have to check your customizations to not break the functionality of the theme. From version 6.3 we have added a better support for child theme, please check – https://forum.tagdiv.com/the-child-theme-support-tutorial/http://screencast.com/t/uonuDjnA6

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Please try to use default page template, disable all your plugins, leave only Visual Composer active, clear cache and purge your files if you use CDN, then check if you still have this issue. Also make sure that you use the latest theme version and also you update the plugins that come with the theme files from the /plugins folder. Also if you use child theme please update it to the theme version that you use.
If you still have this issue please send an email at contact@tagdiv.com and provide wp-access so we can take a closer look at this, paste a link to this topic so we can know who you are and what your issue is.

Thanks!

chavamx
tagDiv Member

I have the same request… To have the category color displayed in home also. What file do we have to modify to make this possible? can we do it through functions php of a child theme? Just give me some basic help and I’ll try to figure out the rest. But It’s something important for feature updates.

Regards

daimpa
Participant
#0

Hi, I’m going to update the theme to version 2.0. I’ve noticed that you made changes to child theme CSS and functions.php. Should we modify them? Their changes are not listed in the changelog.

Also, what if the name of the parent theme directory is different from “Newsmag”? It’ll detect the parent theme automatically via what it’s set on wordpress?

Thanks!

Andrei L.
tagDiv Member

Hi

When you update the theme the old files are overwritten by the new one, except those from child theme and all custom modification you did will be lost. Please check the child theme documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks!

BeingRitesh
Participant
#0

Ok here’s my obvious query that how to properly update my theme without creating any mess? I remember the last time I updated my theme using Envato’s auto-updater plugin, my site went down and showed tons of fatal errors.

The problem was so intense that I had to do a clean WordPress install and installed theme after it (due to caching problems) lol.

So please suggest me a better and easy way to do this because this time my site is loaded with lots of customizations that I can’t risk to lose them at all!

And one more thing, does this update brought the child theme customization functionality over main theme support?

Regards

Alin [tagDiv]
tagDiv Staff

Hi,

Please make sure that you have updated the theme properly and also the plugins that come with the theme files, you can find them in the /plugins folder. Also if you use child please make sure that you use the latest version like provided with the theme’s files. The latest version of the theme is 6.3 and also form this version we added a better support for child themehttps://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Please also check documentation as we have changed the child theme system and more files can be overwrtten by child theme files – https://forum.tagdiv.com/the-child-theme-support-tutorial/
These are the theme post templates if you want to create something similar – http://screencast.com/t/Uf2OilKVBv1

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

You can try to backup your current child theme files, install the latest version provided with the theme files and see if you still have this issue, then add your customized files and see if it works. You will have to check the update log file and see what files were modified from the last version that you used. It is normal if a file was changed to have some issues if this is overwritten by child theme file.
In the latest version of the theme we changed the child theme system – http://screencast.com/t/XOJ975e6Mn and we decided to add better child theme support – https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks!

shubhra
tagDiv Member

Custom page template – Copy page.php to child theme. Rename page.php to page-{page_slug}.php (Documentation).
Custom CPT Template – Copy single.php to child theme. Rename to single-{post_type}.php (Documentation)

iuato
Participant
#0

Hi,

I am trying to set “Tagdiv Slider Gallery” as default for Gallery Type, when create a new Gallery.

This is the code I used in my functions in my child theme, but it is not working. What am I missing?

// Unhook default Thematic functions
function unhook_thematic_functions() {
remove_action( ‘print_media_templates’, ‘td_change_backbone_js_hook’);
add_action(‘print_media_templates’, ‘custom_td_change_backbone_js_hook’);
}
add_action( ‘init’, ‘unhook_thematic_functions’ );

/**
* custom gallery setting
*/
function custom_td_custom_gallery_settings_hook () {
// define your backbone template;
// the “tmpl-” prefix is required,
// and your input field should have a data-setting attribute
// matching the shortcode name
?>
<script type=”text/html” id=”tmpl-td-custom-gallery-setting”>
<label class=”setting”>
<span>Gallery Type</span>
<select data-setting=”td_select_gallery_slide”>
<option value=”slide”>TagDiv Slide Gallery</option>
<option value=””>Default </option>
</select>
</label>

<label class=”setting”>
<span>Gallery Title</span>
<input type=”text” value=”” data-setting=”td_gallery_title_input” />
</label>
</script>

<script>

jQuery(document).ready(function(){

// add your shortcode attribute and its default value to the
// gallery settings list; $.extend should work as well…
_.extend(wp.media.gallery.defaults, {
td_select_gallery_slide: ”, td_gallery_title_input: ”
});

// merge default gallery settings template with yours
wp.media.view.Settings.Gallery = wp.media.view.Settings.Gallery.extend({
template: function(view){
return wp.media.template(‘gallery-settings’)(view)
+ wp.media.template(‘td-custom-gallery-setting’)(view);
}
});

//console.log();
// wp.media.model.Attachments.trigger(‘change’)
});

</script>
<?php
}
?>

jk
tagDiv Member

hey, i have tried to swith the theme coz i am suing the child theme as you predicted. and yes it works.. how do i update childtheme without lose of code..
cheers
jan

Viewing 25 results - 11,851 through 11,875 (of 12,866 total)