Search Results for 'child theme'

    No search results were found in Documentation!

Results from the Forum
Simion C.
tagDiv Staff

It will require a small modification to the smart list template 1 file, remove this code here – http://prntscr.com/mf7emh
Result will be no number – http://prntscr.com/mf7f4x

The best way to do it is in a child theme. This way the modification will not be lost after a theme update – https://forum.tagdiv.com/the-child-theme-support-tutorial/

anorakcat
tagDiv Member

Thanks for your help 🙂

I’ve changed the code in includes/wp_booster/td_module.php in a child theme but this doesn’t seem to have done anything on the homepage -> https://www.enterprisetimes.co.uk

It’s still showing the title attribute and it hasn’t replaced with the alt tag.

Any thoughts?
Thanks 🙂

Simion C.
tagDiv Staff

Hi,

For that there is no theme panel section. You could enter it in the footer spot, it will load it before the closing body tag, maybe it will work – http://prntscr.com/mf57u0
So basically it will be after the opening body tag.

Other than that, the only safe solution is to create a child theme, copy the header.php file in it from the main theme, and enter the code there
http://prntscr.com/mf59hj

Thanks

Calin
tagDiv Staff

Hi,

Will be best if you’ll make those changes in child theme, in this way you’ll not lose the changes when you’ll make an update to the theme.
-> https://www.screencast.com/t/XKpkHKmw

Thanks.

Simion C.
tagDiv Staff

Hi,

I believe you are referring to the Adsense code that has to be entered in the header, that can be entered in the theme panel here – http://prntscr.com/mf411b
Or if you use a child theme, copy the header file in the child theme and enter it there
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Both these methods are considered safe, the code will not be lost after a theme update.

Thanks

Calin
tagDiv Staff

Hi,

Unfortunately our theme do not have any option for this and in order to achieve that you’ll need to edit the td_module.php file and make the thumb to get the text set alt area of feature image -> https://www.screencast.com/t/AG0v6rKAI -> https://www.screencast.com/t/N7isr1opb
Here is the path D:\XAMPP\htdocs\test_site\wp-content\themes\Newspaper\includes\wp_booster\td_module.php
-> https://www.screencast.com/t/m0ghFAXDXg
-> https://www.screencast.com/t/vmeCpwT6W
-> https://www.screencast.com/t/EjqEo7M2b4U

Also you’ll need to make some change on line 314 too -> https://www.screencast.com/t/F1qmYLn6G -> https://www.screencast.com/t/hXw3pcvzM -> https://www.screencast.com/t/dAHXWvwJj -> https://www.screencast.com/t/5ufILEJgQ41

Please make this changes in a child theme.

Hope this will help you!
Thanks.

anorakcat
Participant
#0

Hi 🙂
On the homepage when you hover over one of the images the title of the post is displayed like this: https://imgur.com/a/MX3k3MH

My client would prefer it to show the alt tag of the image. How can I change this? I’ve got a child theme setup and had edited the file includes/wp_booster/td_module_single_base.php but it doesn’t seem to have done anything. The title is still displaying.

Code: https://imgur.com/a/OPQbOfv

Any thoughts? Thanks in advance 🙂

Calin
tagDiv Staff

Hi adnaner99,

If you want only the arrows then you’ll need to add some custom css in Newspaper>theme panel>Custom code>Custom css
https://www.screencast.com/t/bb8zA6qzI
.single .page-nav a , .single .page-nav > div {
display: none;
}
.single .page-nav a:first-child, .single .page-nav a:last-child
{
display: block;
}

Hope this will help you!
Thanks.

Calin
tagDiv Staff

Hi,

This can be caused by plugins, you could make a quick test and deactivate them all, leave only theme plugins active. Check if this solves the problem.
If you made any modifications to the page templates or theme files directly or in a child theme, try to remove them temporarily and test again.

If nothing works, we could take a look. Send us an email at contact@tagdiv.com and provide admin login. Include a link to this topic in the email.

Thanks

Calin
tagDiv Staff

Hi,

This can be caused by plugins, you could make a quick test and deactivate them all, leave only theme plugins active. Check if this solves the problem.
If you made any modifications to the page templates or theme files directly or in a child theme, try to remove them temporarily and test again.

If nothing works, we could take a look. Send us an email at contact@tagdiv.com and provide admin login. Include a link to this topic in the email.

Thanks

Calin
tagDiv Staff

Hi,

If you want you can use a child them and set there all the change you made, in this way when you will update the theme the settings will remain in child theme.
Here is our documentation for Child theme support -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Hope this will help you!
Thanks.

renomureza
Participant
#0

Please help me, I haven’t found a solution in two days. I want to make related posts widgets based on the category of posts opened by visitors. I want to place it in the sidebar.

I have entered the code below into the child theme function.php, but the list of posts that appear is the most recent post.

Link this code: https://wordpress.stackexchange.com/a/307493/159482

function example_cats_related_post() {
$post_id = get_the_ID();
    $cat_ids = array();
    $categories = get_the_category( $post_id );
    if(!empty($categories) && is_wp_error($categories)):
        foreach ($categories as $category):
            array_push($cat_ids, $category->term_id);
        endforeach;
    endif;
    $current_post_type = get_post_type($post_id);
    $query_args = array( 
        'category__in'   => $cat_ids,
        'post_type'      => $current_post_type,
        'post__not_in'    => array($post_id),
        'posts_per_page'  => '3'
     );
    $related_cats_post = new WP_Query( $query_args );
    if($related_cats_post->have_posts()):
         while($related_cats_post->have_posts()): $related_cats_post->the_post(); ?>
            <ul>
                <li>
                    <a>">
<?php the_title(); ?>
                    </a>
                </li>
            </ul>
        <?php endwhile;
        // Restore original Post Data
        wp_reset_postdata();
     endif;
}

and this caller code:

<?php example_cats_related_post() ?>

know this is not an easy thing for beginners, but please give me a hint. I have also succeeded in displaying the related post under the article as I wish, you can check on my experiment blog: mangedu.me

Thank you in advance, I really hope to get a clear answer.

Simion C.
tagDiv Staff

Hi,

1. So the first code has to be entered in the theme header, between the head tags. If you use a child theme you can copy the theme header file there, and enter the code in it
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Or you can enter it in the theme panel here – http://prntscr.com/mel7vj and it will be automatically placed between the head tags in the header.

Both these methods are considered safe methods, the code will not be lost after a theme update.

2. This code is the code of the widget, use it where you want it to appear. Where the composer can be used (pages, cloud templates) you can enter it in text elements, like column text or text with title
http://prntscr.com/mel8q7
In widget sidebars entering it in text widgets should work just as well
http://prntscr.com/mel976

Thanks

Mayuco
Participant
#0

Hello,
All sudden, the cloud templates are gone. It doesn’t appear any templates.
Could you please help?
My theme is Newspaper 9 and child theme is Newspaper 7 Child.
Thank you,

Simion C.
tagDiv Staff

Hi,

We will try to help you with these issues. The first and most important step would be the theme requirements guide, there will be various issues if these are not met
https://forum.tagdiv.com/requirements-for-newspaper/
It is true that there is currently an issue with the mobile theme (this will be fixed in the next theme update), but if it’s not active it can’t be blamed.

Indeed seems that the images do not load in the posts , also other elements such as the header search, the related articles section at the bottom of the post, these are not working correctly.
Usually this is caused by a plugin conflict, conflict between the theme and various codes entered in the theme panel, theme files or child theme.

These would be the next things to check, deactivate all non-theme plugins as a quick test, remove theme modifications and deactivate the child theme temporarily, also codes in the theme panel if you entered any.

When configured properly it shouldn’t cause any issues
https://forum.tagdiv.com/tagdiv-social-counter-tutorial-2/
Make sure the data you enter in it is according to the documentation. If it still causes problems we could take a look at it. Send us admin access at contact@tagdiv.com so we can check it. Include a link to this topic in the email. Let us know.

Thanks

Simion C.
tagDiv Staff

Seems there is a code that overrides the theme code for the span containers
http://prntscr.com/mdn098http://prntscr.com/mdn0eu
Maybe this is coming from a child theme or the custom CSS section. Removing that code should preserve the width of the sidebar in sticky mode.

There would be no more need for such customizations in the code, now that the post templates can be designed with the tagDiv composer and cloud library plugin
https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
Here you can preview the available single templates and even edit them to see how they are built and what can be done
https://affiliate.tagdiv.com/#/load/Single

Simion C.
tagDiv Staff

Hi,

The theme itself doesn’t have a Facebook widget, but it can be done with the official Facebook widget
https://www.wpbeginner.com/wp-tutorials/how-to-add-facebook-page-plugin-in-wordpress/
https://developers.facebook.com/docs/plugins/page-plugin

Configure the widget how you want, then get the code – http://prntscr.com/mdmcd4
First code goes in the theme header file (best you do this in a child theme so that the code will not be lost after a theme update – https://forum.tagdiv.com/the-child-theme-support-tutorial/)
http://prntscr.com/mdmd4s
The other code goes where you want the widget to appear, in a page you can enter the code in a column text element – http://prntscr.com/mdmdl9
Once the page is saved and viewed the Facebook widget will appear
http://prntscr.com/mdmdtc

If you need help let me know.
Thanks

Simion C.
tagDiv Staff

Hi,

Sorry for the misunderstanding. The post template files are located in the main theme folder
http://prntscr.com/md8ml6
These can be modified in a child theme so you won’t lose the changes after a theme update. A similar topic here – https://forum.tagdiv.com/topic/plugin-wp-postratings/

Thanks

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Simion C.
tagDiv Staff

Hi,

Sounds like a potential conflict between the theme and a plugin, or with a code you may have entered in the theme panel, theme files or child theme if you use one. You could begin to investigate these one at a time.

In the mean time you could post a link to the website so I can inspect it, if possible.

Thanks

dharma3d
tagDiv Member

I have deleted Child theme.
I have tried with new .htaccess file.
I have tried with new wp-config file.
Memory limit on my server for this site is 512M.
I have deleted cache plugin (Wp Rocket) and deleted cache folder. On Cloudflare I have purged cache also.
Plugin folder is renamed so all plugins are disabled.

I have error_log file and there is a ton of stuff but I’m not familiar with it. Can I send you to have a look?

thanks

  • This reply was modified 7 years by dharma3d.
Viewing 25 results - 7,476 through 7,500 (of 12,866 total)