Search Results for 'child theme'

Results from the Forum
Chucho
tagDiv Member

Hi Catalin,

Apart from the CSS changes (that would fix the ‘visual side’ of the issue), Is there a way to avoid the theme to load the styles related to that couple of fonts? That should improve the speed of the whole site.

I tried overwriting ‘includes/td_config.php’ (lines starting on 3253) from the child theme without much luck.

Many thanks in advance!

Andrei L.
tagDiv Member

Hi

We are sorry for the delay. We do not work weekends and there is the time zone to consider:
Support Hours (GMT+2)
Monday – Friday:
8:00 AM – 17:00 PM

Use this css in theme panel > custom code > custom css: http://screencast.com/t/bOQGoTmycxu

.wpb_text_column h1:first-child, .wpb_text_column :last-child {
display: inline;
}
.wpb_text_column h1:first-child{
margin-left: 30%;
}
@media(max-width: 768px){
.wpb_text_column h1:first-child{
margin-left: 15%;
}
}

Thanks!

Andrei L.
tagDiv Member

Hi

Try this css in theme panel > custom code > custom css: http://screencast.com/t/ssS1eGvH25j

.category .td-module-thumb a:last-child:before {
background: none!important;
}

Thanks!

Andrei L.
tagDiv Member

Hi

The file from booster platform can’t be overwritten via child theme. Please check our documentation about child theme support with the theme: https://forum.tagdiv.com/newsmag-child-theme-support/
Also in order to work add the code in the main theme file.

Thanks!

gmaio
tagDiv Member

Hi there,
with the update of Newsmag theme to versione 2.3.5, the modification indicated at the http://screencast.com/t/yOEz5TC7x to file Newsmag/includes/td_config.php doesn’t work anymore. Even if I’ve set the ‘show_child_cat’ to 10, theme still shows only 5 child categories as you can see at http://43b.60a.myftpupload.com/.
Hereafter my code modification:

...
td_api_block::add('td_block_mega_menu',
array(
'map_in_visual_composer' => false,
'file' => td_global::$get_template_directory . '/includes/shortcodes/td_block_mega_menu.php',
// key added to supply 'show_child_cat' differently for each theme
'render_atts' => array(
'show_child_cat' => 10,
)
)
);
...

How I can get again to show more than 5 default child categories in the top megamenĂą?
I’m using a Newsmag child theme and I’ve made only this max category number modification to my Newsmag-child/includes/td_config.php file.
Thanks in advance for any appreciated help.

Giuseppe Maio

gmaio
tagDiv Member

Hi there,
the modifications you’ve indicated some time ago to the file Newsmag/includes/wp_booster/wp-admin/content-metaboxes/td_set_post_settings.php (as shown at http://screencast.com/t/YcimFCB4W) worked for me like a charm until the update of Newsmag theme to the Version 2.3.5. The purpose was and still is to hide the sidebar selection combo to every user but to administrator. Now, even if the suggested modification has been applied, it doesn’t work anymore and the sidebar selection combo is “dangerously” visible and selectable from everyone. This way one (author, editor, …) could remove a “vital” sidebar from the system! How can I get the correct behaviour?
I’m using a Newsmag Child theme with only this modification to my Newsmag-child/includes/wp_booster/wp-admin/content-metaboxes/td_set_post_settings.php
My site is at http://43b.60a.myftpupload.com/
Thanks in advance for any appreciated help.

Giuseppe Maio

  • This reply was modified 10 years by gmaio.
Bogdan B.
tagDiv Staff

Hello,

Unfortunately our theme does not support featured posts. You can however create a featured category and add your posts to it, then add a block in visual composer on the specific post you want it displayed. You can activate visual composer on posts from the plugin settings: http://screencast.com/t/V4d9MhrFxr
if you do not want to do this for every post in particular, you can edit the theme files and edit the specific post template you use and add a function to the file called do_shorctode. This will add a specific block you set to it on every post that uses that particular template you edit. They can be used in the child theme as well.
For example you can create your block in visual composer on a dummy page and get the shortcode for it: http://screencast.com/t/02ccgJ2Q8mN then get the shortcode for the block in classic mode/text mode
Then you can edit the post template from the files: http://screencast.com/t/FBgdVg39o
example: <?php echo do_shortcode('[vc_row][vc_column][td_block_3 category_id="2"][/vc_column][/vc_row]');?>

I hope this helps.
Thank you!

mzirafos
Participant
#0

I would like to add featured/top posts at the bottom of single post page.

Is it possible?

Should I create child theme for this?
If yes, how do I add featured posts in specific style to a template?
Shortcode? PHP code?

Bogdan B.
tagDiv Staff

Hello,
Thank you for appreciation.
You can try to add your content inside the smartlist file in the child theme: You will have to create the smartlist path and move these files over to your child theme: http://screencast.com/t/0RKJoBNqJT
Then you can edit the smartlist you use and add the shortcode with a do_shortcode function like so:
http://screencast.com/t/JnFFBrDSt2l
$buffy .= do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
This was an example for an ad on smartlist 7. I assume the comments have a shortcode as well so you can use the same function to make them display inside a smartlist.
I hope this helps.
Thank you!

Catalin
tagDiv Staff

Hello cookingpanda,

Unfortunately, if you want to move your post pagination, please notice that it is not a simple task and implies more additional customizations and require custom work. If you want to display more levels in our theme and if you are not aware the steps in this regard, please consider hiring a freelancer/developer to implement this for you because we cannot provide custom services at the moment, sorry!
Below, I gave you an example if you want to change the arrow design. It is necessary to use a bit of CSS to implement this on your theme. Please check the code below and try to implement this to your side and you should do in the same way for the previous arrow if you need this.

.page-nav a:last-child {
background-image: url('https://cdn0.iconfinder.com/data/icons/arrows-volume-4/48/246-128.png');
background-size: 33px 30px;
background-repeat: no-repeat;
}
.td-icon-menu-right:before {
content: '';
}

The result you should see here -> http://screencast.com/t/9hhTjyz2H44G

Hope this helps!

Thank you for the message and for your understanding!

jcarr99
tagDiv Member

Sorry for repeated post. Does anyone else have any idea how to add the content bottom ad into my child theme?

jcarr99
tagDiv Member

Bogdan,

Thanks for the quick reply. You’re support is second to none.

Would it be possible to insert the short ode into a smart list in my child theme so I don’t have to add it every time… Set it and forget it?

hagedorn
tagDiv Member

I’m using a child theme so tempering with the original theme files is something
I’d like to avoid.

I have now encapsulated the add_theme_support into an
after_setup_theme action an this seems to work. What
do you think?


function wpsites_child_theme_posts_formats(){
add_theme_support('post-formats', array('video','link'));
}
add_action( 'after_setup_theme', 'wpsites_child_theme_posts_formats', 11 );

Catalin
tagDiv Staff

Hello TheBlueSea,

If you have the ultimate version of the theme, please ensure that your child theme has the same version, otherwise, all the customizations from the child theme will not applied to the latest version of the theme. For each update, the child theme will be changed and you have to redo all the customizations from this file because the code will be overwritten.

For more information about creating child theme, please consult our documentation here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Hope this helps!

Thank you for the message!

TheBlueSea
Participant
#0

Hola support!

When I activate child theme my columns start behaving badly. Please advice!

Theme Version: 6.6.4
WP Version 4.4.1.

Catalin
tagDiv Staff

Hello adriatikxhelo8,

Yes, for each update, the child theme will be changed and also, you have to re-add all you old customization in the new child theme.

Thank you for the message!

adriatikxhelo8
tagDiv Member

So when I update the theme to Newspaper 6.6.5, I need to upload your new child theme located in your new folder?

Catalin
tagDiv Staff

Hello adriatikxhelo8,

If you want to do an update to the latest version of our theme (6.6.5) you have to do a full backup and for your child theme because it will not work for the latest update because all the files will be overwritten with this update. You have to use the child theme wich comes bundled with our latest update and try to implement again all the customizations that you have done in the past and adjust it with the latest version.

Hope this helps!

Thank you for the message!

adriatikxhelo8
tagDiv Member

Thnx Edward. I paste it under the child theme “functions.php” and it worked 🙂

adriatikxhelo8
Participant
#0

Dear users.

Has been 5 months since I’ve created my website: http://www.storypickers

Only two months ago I created a child theme for the newspaper theme. P.S: After I already published so many articles.

Now I want to update the theme, but I’m afraid if I lose anything. I’m worrying about the child theme, If I did it ok and is not a problem I’ve created it after 3 months.

However I’m waiting for an reply, or it will be a great solution to provide my wordpress username and pasword for any of you guys to take a look into it.

Have a nice day 🙂

Bogdan B.
tagDiv Staff

Hello Aaron,
In order to change the source text you can use the translations option in the theme panel: http://screencast.com/t/dffVmszY and simply type a “translation” for it. (no child theme needed)
I hope this helps.
Thank you!

Catalin
tagDiv Staff

Hello Vesa,

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 child theme will do not work because all the files from this were changed in Newspaper 6 and as the main theme and also you lose all changes.

Newspaper 6 is a whole new theme so an update from 4 to 6 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 6 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.

If you have already Newspaper 6 and you want only to do the update to latest version, you should make this without any problem. All your customization are recorded in the database which is not affected by this update.

Hope this helps and let us know how it goes!

Thank you for the message!

James Christou
tagDiv Member

Hey,

We were able to add config to each of the block settings (in visual composer) using a function hooked to admin_init. This allows the user to specify a list of terms in that taxonomy and filter the results by those terms.


function extendCustomTaxonomyOptions() {
// Check if Visual Composer is installed
if ( ! defined( 'WPB_VC_VERSION' ) ) {
return;
}

// Retrieve all Lifestyle taxonomy
$terms = get_terms('name_of_your_custom_taxonomy_here');
if( !is_wp_error( $terms ) && count( $terms ) > 0 ) {
$dropdown = array(
'Disabled' => 'disabled',
'All Custom Taxonomy Terms' => 'all'
);
foreach( $terms as $term ) {
$dropdown["- {$term->name}"] = $term->term_id;
}

// Param to be added
$new_param = array(
'type' => 'dropdown',
'heading' => 'Filter based on custom taxonomy',
'param_name' => 'adv_filtering_custom_taxonomy',
'group' => 'Filter',
'admin_label' => true,
'value' => $dropdown,
'description' => __( 'If selected, will further filter the posts based on the custom taxonomy', 'vc_extend' )
);

// Integrate and add new parameter to the options available from the parent theme
// See https://wpbakery.atlassian.net/wiki/pages/viewpage.action?pageId=524335 for more info
for ( $i = 1; $i <= 16; $i++) {
vc_add_param( "td_block_{$i}", $new_param);
}

vc_add_param( "td_block_slide", $new_param);
}
}

Then we added some custom code in a child theme copy of the td_data_source class to read those settings and filter the results. This was added to the end of the td_data_source::shortcode_to_args() function, just before returning the $wp_query_args:


if( array_key_exists( 'adv_filtering_custom_taxonomy', $atts ) ) {
if( $atts['adv_filtering_custom_taxonomy'] != 'disabled' && !empty( $atts['adv_filtering_custom_taxonomy'] ) ) {
// Add new taxonomy in the query
$query = array_merge( $wp_query_args, array(
'tax_query' => array(
array(
'taxonomy' => 'name_of_your_custom_taxonomy_here',
'field' => 'term_id',
'terms' => $atts['adv_filtering_custom_taxonomy']
)
)
));
}
}

Hope that helps!

gekkie96
Participant
#0

When you input a source name on a post I would like to change the text SOURCE that displays on the post to something else?

I’m using a child theme, so if you could direct me on how to change this text with a child theme that would be great, so I can continue to update the core theme.

Thanks
Aaron

Vesa
tagDiv Member

Hi Catalin,

I appreciate your continued help.

I had to restore a recent backup. Maybe you could have a look at our current layout and contrast it with that in the picture.

http://vastavalkea.fi/

I do have Visual Composer installed; it’s just not the latest version. The funny thing was that the settings seemed to be correct (=the same as before theme update), yet for some reason there were additional, unwanted categories like “Latest articles”, “The most popular posts” and “Popular category” (all in Finnish, of course) at the bottom of the front page. They were not there before the update.

I also noticed that my translations were missing.

TagDiv’s instruction video says “Delete the old version of the theme.” At that stage I deleted the “Newspaper 4 child theme”, which was active. Afterwards I have wondered if I should have deleted the Newspaper 4 main theme, not the child theme. Which should one delete?

Note that I have made customizations to a number of php files – for example, td_block_8.php – and added customizations in the CSS Editor. Does this cause problems when updating?

Best,
Vesa

Viewing 25 results - 11,301 through 11,325 (of 12,866 total)