Search Results for 'child theme'

    No search results were found in Documentation!

Results from the Forum
Simion C.
tagDiv Staff

Hi,

Indeed it’s not working on your website for some reason, there are no errors that would indicate a possible conflict. If that modification works, you could do it for the moment and have a working scroll to top button.
Then keep investigating why it happens. Investigate plugins one at a time, code entered in the theme files or theme panel, child theme.

The value in the code you mention should be as it is, there were no changes made in this matter that would cause such problems. I made some tests and it works same as before, no modifications needed.

Thanks

Calin
tagDiv Staff

Hi,

Please add in functions.php on child theme the below code:

add_action( 'add_meta_boxes', 'tu_remove_meta_boxes', 999 );
function tu_remove_meta_boxes() {
remove_meta_box('td_post_theme_settings_metabox', 'post', 'normal');
}
add_action('add_meta_boxes', 'remove_meta_boxes');
function remove_meta_boxes(){
remove_meta_box( 'td_post_theme_settings_metabox', 'td_book', 'normal' );
remove_meta_box( 'mymetabox_revslider_0', 'td_book', 'normal' );
}

https://www.screencast.com/t/XKpkHKmw
See results: https://www.screencast.com/t/3zafrscE
https://www.screencast.com/t/UjUfRDGCe8C
https://www.screencast.com/t/IATCCOnx
Hope this will help you.

Thanks.

Calin
tagDiv Staff

Hi,

You are probably uploading the whole theme package. You have to upload only the theme zip file, not the whole package which contains other items
https://help.market.envato.com/hc/en-us/articles/202821510-Theme-is-missing-the-style-css-stylesheet-error

These are the theme install methods with steps for each method
https://forum.tagdiv.com/install-via-wordpress/
https://forum.tagdiv.com/install-via-ftp/

Regarding on child theme, please notice that’s not required and it’s optional.

Thanks for your understanding!

pbc
Participant
#0

I’ve found this in forum, added to functions.php on child theme, and it doesn’t work.

add_action( 'add_meta_boxes', 'tu_remove_meta_boxes', 999 );
function tu_remove_meta_boxes() {
remove_meta_box('td_post_theme_settings_metabox', 'post', 'normal');
}

I want to remove this metabox on my cpt:
сез

And this on usual posts:

pst

And rev slider on usual posts:

rev

Hiding them from screen not a good option.

Thanks

khen888
tagDiv Member

I like the default pop-up modal login form of Newspaper theme. I don’t PHP much.

Could you help me what code to insert or what should I modify in the td-login-modal.php?

Or much better please provide a function code (in functions.php child).

Thanks a lot sir Simion. This will help a lot of customers also.

Simion C.
tagDiv Staff

Hi,

You could try code from a topic I found, there are more online
https://stackoverflow.com/questions/8127453/redirect-after-login-on-wordpress
Check if these work. Or maybe modify the login button in a child theme
https://www.screencast.com/t/JxbU6sS2b7
Or disable the theme login and use a login plugin or widget that can be placed in the page for example.
Or add a custom link as a menu item in the top bar, directing to a page where the users can login.

Thanks

doo
Participant
#0

I use a list of categories on wordpress pages built with Tagdiv Composer, as well as on standard pages. The site uses the latest version of the theme Newspaper. The list of categories is displayed via shortcode:


function categories_list_shortcode () {
	$args = array(
		'show_option_all'    => '',
		'show_option_none'   => __('No categories'),
		'orderby'            => 'name',
		'order'              => 'ASC',
		'show_last_update'   => 0,
		'style'              => 'list',
		'show_count'         => 0,
		'hide_empty'         => 1,
		'use_desc_for_title' => 0,
		'child_of'           => 0,
		'feed'               => '',
		'feed_type'          => '',
		'feed_image'         => '',
		'exclude'            => '',
		'exclude_tree'       => '',
		'include'            => '',
		'hierarchical'       => 0,
		'title_li'           => '',
		'number'             => NULL,
		'echo'               => 0,
		'depth'              => 0,
		'current_category'   => 0,
		'pad_counts'         => 0,
		'taxonomy'           => 'category',
		'walker'             => 'Walker_Category' 
		);
	$categories_list = wp_list_categories( $args );
	return '<ul class="catslist">'. $categories_list . '</ul>';
}
add_shortcode('categories_list', 'categories_list_shortcode');

If there are round brackets in the category name, this category is not displayed correctly in the list (screen – http://joxi.ru/VrwbyPKu773gRA).

If I change the theme to another, then everything is displayed correctly.

I think the problem is in the filter:

/* ----------------------------------------------------------------------------
add span wrap for category number in widget
*/
add_filter('wp_list_categories', 'cat_count_span');
function cat_count_span($links) {
$links = str_replace(' (', '<span class="td-widget-no">', $links);
$links = str_replace(')', '</span>', $links);
return $links;
}

905-913 lines in /Newspaper/includes/wp_booster/td_wp_booster_functions.php

How to fix this problem?

TahorSuiJuris
Participant
#0

Using an existing Newspaper 9 theme template, how to copy the existing header menu and the child items underneath?

Sagar90k
Participant
#0

Hi,
I have created a new page and assigned it a default template.I want to achieve below thing:

1. Display all category featured images in this new page. When clicked on those images, user will be redirected to its relevant category page where all posts as displayed of that particular category.
Is it possible with existing theme functionality?

I order to achieve above mentioned, I tried below thing.

Created new page template in child theme. Assigned it to newly created page.Installed one plugin which adds featured imaged to the categories.
I am not a hardcore developer but I manage and wrote few lines of code in page template and I achieved above mentioned thing but now struggling with css and styling part as it is getting creepy .So I wanted to know if there is any such existing functionality in newspaper theme.

Please let me know if this is correct way and it wont mess up with theme in long run.

Thanks! 🙂

Simion C.
tagDiv Staff

Copy the actual file there and modify it, for example
https://www.screencast.com/t/CFopZ1MC
Then the file will be loaded from the child theme as long as it is active.

solokco
tagDiv Member

Thanks, I will give it a try.

Just to be sure, if I added to my child Theme, I need to add ALL the function get_mega_menu_subcateogies($att) {} with everything there and the modification, or JUST the function with the part I want to modify

Thanks for suck a quick answer

Simion C.
tagDiv Staff

Hi,

There would be a method, it will require a modification to the mega menu block file. This topic is similar
https://forum.tagdiv.com/topic/is-it-possible-to-exclude-third-level-sub-categories-from-mega-menu/
You can make the modification in a child theme if you use one.

Thanks

iamkingsleyf
Participant
#0

Hello;

Who know a good Newspaper child theme developer? we are not looking for change of colors. we need a very nice job, it will be used across our network of site.

if you know anyone please recommend.
if you are a developer you should have samples already.

Thanks

Megamediasl
tagDiv Member

sorry, I didn´t read “We strongly DO NOT RECOMMEND using the theme API from the child theme.”

Megamediasl
tagDiv Member

Hi,

I have read the same post from theme support and td_config.php file isn´t a specific theme file to edit in the child theme.

I created a directory structure path in the child theme like the one existing in the parent theme too

Calin
tagDiv Staff

Hi,

Please read our Child theme support, here you’ll find the file that you can edit in the child theme -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you for your understanding.

Megamediasl
Participant
#0

Hi

Can I edit td_config.php file in my child theme?

I update the parameters of an existing thumbnail but I don´t want to edit the parent theme

Thank you

pbc
tagDiv Member

Hi, Simion.
In the guide you mentioned, they suggest to post this code:
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="http://schema.org/">
<?php if(function_exists('bcn_display'))
{
bcn_display();
}?>
</div>

into header.php file, in child theme. I’ve added it, and nothing shown. What file do I need to post this into?

Thanks

Simion C.
tagDiv Staff

Hi,

The path to the placeholder images is set in the general module file
https://www.screencast.com/t/QiIpcwMSCJwn
That file is not supported to be modified in a child theme, if it would be a modification to the path would work. For example
https://www.screencast.com/t/On9DXdtNNbh
But as it is you would have to modify the path in the module file after each update, in the main theme.

Thanks

gferrise
Participant
#0

hello, I think I know the answer but is there a way to create a child theme for AMP?
thank you

Catalin
tagDiv Staff

Hello Gregory,

You are probably uploading the whole theme package. You have to upload only the theme zip file, not the whole package which contains other items
https://help.market.envato.com/hc/en-us/articles/202821510-Theme-is-missing-the-style-css-stylesheet-error

These are the theme install methods with steps for each method
https://forum.tagdiv.com/install-via-wordpress/
https://forum.tagdiv.com/install-via-ftp/

Regarding on child theme, please notice that’s not required and it’s optional.

Thanks for your understanding!

Simion C.
tagDiv Staff

Hi,

Either manually enter the verification code in the theme main header file, between the HTML head tags (can be done in a child theme)
https://www.screencast.com/t/halA2xBG

Or easier, simply enter the code in this section – https://www.screencast.com/t/rMkLP4yW
It will be loaded in the theme header if entered there. The code will also not be lost after a theme update.

Or maybe use a plugin that can insert or load code in the header. But this would not be necessary if there is a theme panel section that can do that.

Thanks

Simion C.
tagDiv Staff

Hi,

The modules can be modified in a child theme if needed. A child theme is provided in the theme package (code folder)
https://forum.tagdiv.com/whats-included/
There is a guide for it – https://forum.tagdiv.com/the-child-theme-support-tutorial/

Copy the module you want in the child theme (create the same directory path to the file as in the main theme). Opening a module file you can see what it is designed to display, for example module 1
https://www.screencast.com/t/w8Q3PphLU
So if you copy the module you want in the child theme and add code in it or modify it, it should display the additional information.

Thanks

Gregory
Participant
#0

Hi,
To solve the issue of ‘missing style sheet error’, I installed the WordPress file only. That has worked.

However, as I installed only the WordPress file, a lot of folders have not been installed. For example, the child theme has not been installed (folder “code”, with the other files : the file td-api-plugin-1.02 & td-custom-post-type). The following folders are also missing in my FTP: demo sliders, patch_9.0.1_9.1, plugins,, psd, psd_logo, LIcensing, and documentation.

I manually installed the child theme. Are the other files important ? Where have I to install them ? It is quite frustrating to have the feeling some files are missing !

Thanks for your help.

Gregory

#0

Hi!
Can you help me into changing the code in the child theme?
I want to replace (or add the possibility) the category in meta info by a custom field I have.

Here: https://imgur.com/a/jkDkQ86

Viewing 25 results - 7,651 through 7,675 (of 12,866 total)