Search Results for 'child theme'

Results from the Forum
starfishcapital
Participant
#0

Hi Team,

I am trying to remove the image and author meta tags (<meta property=”og:image”> and <meta name=”author”>).

I have created a child theme and located the code for the above in includes/wp_booster/td_wp_booster_functions.php. I have copied it using the same structure to my child theme and commented out the section on the above. See below:

/* facebook sharing fix for videos, we add the custom meta data
if (has_post_thumbnail($post->ID)) {
$td_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
if (!empty($td_image[0])) {
echo '<meta property="og:image" content="' . $td_image[0] . '" />';
}
}

// show author meta tag on sigle pages
$td_post_author = get_the_author_meta('display_name', $post->post_author);
if ($td_post_author) {
echo '<meta name="author" content="'.$td_post_author.'">'."\n";
}*/

However the two meta tags still appear.

Thanks for helping me out on this.

menneskedyr
Participant
#0

Hi,

I’m preparing a redesign of a website built using Newspaper. To test it properly, I need to have a local instance of the theme running (CSS styling is not enough as I have to change theme settings as well, so I can’t test it as a child theme on an active installation).

Will the theme be functional enough if I run a non-activated copy of it on a local machine for testing only?

Or, if not, is there a way around? How to play with the theme for preview only?

Thanks.

marcello.oddini
Participant
#0

We would like to manage Coauthors for our articles (via the plugin https://wordpress.org/plugins/co-authors-plus).
The plugin makes available functions to get the list of the authors and the links to their posts.
function coauthors
function coauthors_posts_links
function coauthors_links

See https://vip.wordpress.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/

There is a function get_author() both in td_module.php and in td_module_single_base.php.
Where should it be overwritten to use the information coming from the plugin?
How the modification can be managed with a child theme?

Krisj
tagDiv Member

Hi!
Thank you for your reply.
I tried deactivating all the plugins except visual composer, cleared cache but couldnt reset cdn files.

There is no child theme activated.

I still can’t save the translations, its just loading.
All the other options save perfectly..

I have tried to delete the other themes aswell.

Andrei L.
tagDiv Member

Hi

I’ve checked your site and noticed that you’re using an older version of Newsmag theme. Try to update the theme at V 3,1 which is available on themeforest, update Visual Composer at V 4.1, this version is included in theme’s patch, deactivate the child theme, deactivate all plugins except Visual Composer, clear all caches purge cdn files then test the site again.

Let me know how it goes.
Thanks!

Bogdan B.
tagDiv Staff

Hello,
Please check other settings in the theme panel and see if they save or it;s just the translations. In any case please disable all plugins except visual composer, clear cache and reset cdn files if you use it. This is most likely a plugin conflict. Also if you use wordfence, please set the firewall on learning mode. If you use a child theme, try to activate the main theme to rule out any custom code affecting the theme panel.
Thank you!

Andrei L.
tagDiv Member

Hi

Unfortunately those files cannot be overwritten from child theme, sorry. We plan to extend the child theme support for the theme in near future but for thew moment only the files indicated in our documentation: https://forum.tagdiv.com/newsmag-child-theme-support/
For now you need to keep track your modifications and re-add theme after each update.
Thanks!

nycinsider
tagDiv Member

Yeah – I’ll stay away from the advanced part and just try different plugins. I still have the CSS issues with google, but the speed booster didn’t make an impact on speed – at all – and killed my child css.

Do you know how to set an exp for .woff? Google is giving me this error:

Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.

http://www.domain.org/wp-content/themes/Newspaper/images/icons/newspaper.woff?9

If you could tell me exactly what to put in .htaccess that would be great.

Andrei L.
tagDiv Member

Hi

Note that the child theme was also update and if you’e using V 1.7 the update must be done clean, by this I mean that you have to upload a fresh copy of Newsmag theme and also update the child theme.
You can create you own header.php in child theme as that file can be overwritten there. For more details about child theme support please check this link: https://forum.tagdiv.com/newsmag-child-theme-support/

Since V 3 we added option which allows you to deactivate post meta on modules. They can be found in theme panel > block settings: http://screencast.com/t/8spjYmoTgf

Thanks!

Mpampirina
tagDiv Member

Can I do this (adding custom spots) somehow on the child theme? Because if I do this on the main theme, I will lose everything at the next update. [And probably I won’t remember the changes I made anyway.]

Nano
tagDiv Member

Where do I need to add this “Custom CSS” code. Is there any place to add it or should I add it using child theme “style.css” ?

Thank you.

Bogdan B.
tagDiv Staff

Hello,

Our grids already have the gradient so you can read the content:
default: http://screencast.com/t/n3R4DpUKfCY no gradient: http://screencast.com/t/z9Q3O94TXkW
You can increase this gradient if you want it stronger with this css code:
.td-module-thumb a:last-child:before{
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 1) 100%)!important;
}

As for the meta info, you can select the meta you want for modules and blocks as well as the category tag from the theme panel . You can remove these elements if you do not want them:
http://screencast.com/t/SozRBtvzLAt and http://screencast.com/t/Pl9YedX3V

Thank you!

Brain916
Participant
#0

Hello, I am re-doing the latest theme from 1.7 on 3.(I forgot but latest). But I have noticed a few things changed. I am working with the Child Theme so if I update, I won’t loose anything.

First Question:

From previous install, there was a header.php section in the Child Theme, now there isn’t (only 2-3 files). I needed to add some code in the header. How would I go about doing this?

Second:
I successful removed the Comment button that displayed on the homepage with the following code:
.page .td_module_wrap .meta-info {
display: none;
}

However, it still displays the comment button, date and author on tag and category pages. I wanted to have this removed site-wide. How would I go about this?

Andrei L.
tagDiv Member

Hi

Try to deactivate all plugins except Visual Composer, deactivate the child theme, clear all caches, purge cdn files if you’re using then test the site again.
Let us know how it goes and if you still can’t mange to solve this please provide a link where you’re using page-builder+title so we can inspect this closer.

Thanks!

wanderpow
tagDiv Member

Hello, Bodan,

I had already checked the child theme and there is no weird code, but to be sure, I did try the main theme and it did not help. I’ll email to see what’s going on.

Thanks,
Andrew

rjdtramirez
Participant
#0

Hi,

I’d like to add a custom button just beside the search button(I’m using Newspaper Black edition) How can I customize? Currently I’m editing in my child theme the file header-menu-h1.php

this is my code


<div id="td-header-menu" role="navigation">
<div id="td-top-mobile-toggle"><i class="td-icon-font td-icon-mobile"></i></div>
<div class="td-main-menu-logo td-logo-in-menu">
<?php
if (td_util::get_option('tds_logo_menu_upload') == '') {
locate_template('parts/header/logo-h1.php', true, false);
} else {
locate_template('parts/header/logo-mobile-h1.php', true, false);
}?>
</div>
<?php
wp_nav_menu(array(
'theme_location' => 'header-menu',
'menu_class'=> 'sf-menu',
'fallback_cb' => 'td_wp_page_menu',
'walker' => new td_tagdiv_walker_nav_menu()
));

//if no menu
function td_wp_page_menu() {
//this is the default menu
echo '<ul class="sf-menu">';
echo '<li class="menu-item-first">Click here - to select or create a menu';
echo '';
}
?>
</div>

<div class="">
<?php $posts = get_posts('orderby=rand&numberposts=5'); foreach($posts as $post) { ?>
" title="<?php the_title(); ?>"><i class="fa fa-random" aria-hidden="true"></i>
<?php } ?>
</div>

<div class="td-search-wrapper">
<div id="td-top-search">
<!-- Search -->
<div class="header-search-wrap">
<div class="dropdown header-search">
<i class="td-icon-search"></i>
<i class="td-icon-search"></i>
</div>
</div>
</div>
</div>

<div class="header-search-wrap">
<div class="dropdown header-search">
<div class="td-drop-down-search" aria-labelledby="td-header-search-button">
<form method="get" class="td-search-form" action="<?php echo esc_url(home_url( '/' )); ?>">
<div role="search" class="td-head-form-search-wrap">
<input id="td-header-search" type="text" value="<?php echo get_search_query(); ?>" name="s" autocomplete="off" /><input class="wpb_button wpb_btn-inverse btn" type="submit" id="td-header-search-top" value="<?php _etd('Search', TD_THEME_NAME)?>" />
</div>
</form>
<div id="td-aj-search"></div>
</div>
</div>
</div>

Notice the div before td-search-wrapper div class.

I’m trying to add a random article button beside the search button. But my template is broken after I add a class to the div like this: “td-random-article-wrapper” should I register that class first? I can’t seem to find the documentation for templates?

Thanks

Bogdan B.
tagDiv Staff

Hello,
You can first try to disable all plugins except visual composer, clear cache and rest cdn files if you use it. This will rule out a plugin conflict. Not all plugins work with our theme. If you have a child theme, make sure you switch to the main theme to see if there is no custom code in there affecting the front-end.
let us know how it goes.
Thank you!

Bogdan B.
tagDiv Staff

Hello,

The colors should work as expected. Please check other settings in the theme panel and see if they also do not work.
If you use wordfence, please set the firewall to learning mode. If you don;t please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Also if you use a child theme, please switch to the main theme to rule out any custom code affecting the theme panel.

Let us know how it goes.
Thank you!

Catalin
tagDiv Staff

Hello Chandan Kumar Singh,

Please keep in mind that the Child Theme is a theme that inherits the functionality and styling of another theme, called the parent theme. Child themes are the recommended way of modifying an existing theme. For more information about Child Theme support, please check our documentation here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/ and also, the codex documentation here -> https://codex.wordpress.org/Child_Themes

Hope this helps!

Thanks.

Catalin
tagDiv Staff

Hello DeRothschild,

Unfortunately, our mobile theme has not been designed to be modified from the Theme panel, sorry! Please notice that this plugin has been made to have a simplistic structure just to be more useful to use and very fast. If you want to develop this plugin, you will have to alter the code from the front-page.php core file from this -> http://screencast.com/t/3kKOhca2a Please notice that is not a simple task and if you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
All the custom CSS which you want to be applied for your Mobile Theme you should add in this area, here -> http://screencast.com/t/HJtxRLlkoDR If you have a caching plugin, in order to achieve best results, try to clear all of your caches and test it again.

Thanks for your understanding!

Bogdan B.
tagDiv Staff

Hello,
Please first check your system status and increase all parameters like this guide suggests: https://forum.tagdiv.com/system-status-parameters-guide/
Then make sure you only use tested and recommended plugins: http://screencast.com/t/uj91GVDB95E
if you have a child theme please switch over to the main theme to rule out any custom code you might have that influences the site’s functionality.
As for the analytics, there are 2 codes provided by google. Please insert the long one..the one that resembles an adsense ad, not the short version of the code.
Thank you!

Chandan Kumar Singh
Participant
#0

Hi Team,

How can I see child theme demo.

Please give me URL.

Thanks
Chandan Kumar Singh

Bogdan B.
tagDiv Staff

Hello,
Please disable all plugins except visual composer, clear cache and reset cdn files if you use it. Also if you have a child theme, try to switch to the main theme to see if the problem does not originate from there.
Let us know how it goes.
Thank you!

Bogdan B.
tagDiv Staff

Hi,
If you use a child theme please switch to the main theme and see if the problem goes away. That should be a first check as custom code is in most cases the cause of the issues. A child theme is not update proof and people tend to miss this aspect. If you updated your theme and have files in your child theme that were modified in the main theme updated files, then it can cause issues with the theme. Let us know if it was the child theme and if not, please contact us via email at contact@tagdiv.com and provide wp-admin so we can login and investigate.
Thank you!

wanderpow
tagDiv Member

Hello, Bogdan,

We’re not using Wordfence, so it’s not that. I’ve actually cloned the site to a development setup and I have the same issues there, and that’s with all of the plugins disabled, and the CDN disabled as well.

Considering all of that, what else could it be? In particular we’re trying to display dates on posts and turn off the modal image setting.

The only other thing to note is that we’re using the child theme, but I rechecked that setup and it seems fine.

Any ideas would be most helpful.

Viewing 25 results - 10,676 through 10,700 (of 12,866 total)