Search Results for 'child theme'

Results from the Forum
Radu
tagDiv Staff

Hi,

do you have at least Version 6.3.1 ? We support for now sidebar position and custom sidebars. If you want to use a different single template… just rename one of the single templates to single-yourcustomposttype.php in a child theme and it should work as expected.

What options do you need besides the ones that are now? We are just started support for CPT 🙂 so please be patient with us until we iron out all the usability issues and until we have all the functionality in place.

elvinf
Participant
#0

Hi,

I just updated from NewsMag version 1.7.1 to 2.0. In your updated documentation I see several files changed including several files I moved to the child theme folder to make some slight customizations.

With each passing update will my modified files be outdated. Should I make these modification to the new updated files? I made slight changes to the category.php, loop-single-3.php, loop-single.php, single.php and page.php files.

I want to make sure I am not missing out on any new features by using older files?

INSPIRELLE
tagDiv Member

Hi Again,

3. the read more button to appear as just text:
I’m using a child theme, so my style.css doesn’t include all code.
So this is what I added to my style.css:
.td-read-more a {
background-color: #ffffff;
border-radius: 0px;
color: #bc00a8;
font-size: 14px;
font-weight: bold;
line-height: 18px;
padding: 0px;
}
.td-read-more a:hover {
background-color: #ffffff;
}

The only thing is that on hover, the background color still shows up. It’s the same colour as the text, so on hover, it just becomes a pink block. I’d like to make it just change from pink to black on hover. Can you help?

Thanks SOOOO much =)
C

GadgetViper
Participant
#0

Hi,

I’m poised to start the theme update from 4 to 6, I have already updated Visual Composer to the latest version. With regards to the social counter and Speed Booster, I assume I wait until the 6 theme is uploaded and the update script is run.

My concern is that when I update the Speed Booster plugin it will overwrite the edits I made, is this correct?

It was a while ago, and I have a terrible memory, so I’m unsure what I would need to do to retain my edits?

I’ve also got a child theme, after the update, I assume I paste my child theme edits into the new child theme files located in the /code folder and overwrite the old one on the server?

I have the following code in my current child theme:

—————-
if (!defined(‘TD_THEME_WP_BOOSTER’)) {
include TEMPLATEPATH . ‘/includes/td_wordpres_booster.php’;
}
—————-

Would this need to be added to the new child?

Kind Regards

Simon

NickSi
tagDiv Member

Oh, i didn’t see the demo page, sorry about that(my time is really limited right now). Could you please tell me where to start (After creating a child theme), to make this box as an image category without changing the background; Just to put a simple image there and nothing else.If it is possible.
Also keep that as a feature request please.

Thank you for your time.

Emil G
tagDiv Staff

Hi,

The structure must be maintained, if the file is in the main theme root you can copy it in the child theme root.

Thank you!

nf_prt
tagDiv Member

I find the plugin very stable now, I would say it’s 5 times better than what I had available originally 8/9 months ago, when I started this as a hobbie at first. Again, I recommend a decent server, the cheapest one will require work to stay fast and deliver a pleasant user experience (like CDN, cache, optimized images, etc)

Dates are now easily set, used to be an headache. Depends what one consider “small things” I guess 🙂 everything that is standard or mainstream works very well.

Comments are not affected by the plugin (except for the labels of the input fields ofc), a comment made in a post, regardless of its content or its language, will appear in all versions (languages) of the post/page. I remember I stumbled upon an extension/plugin which allowed to show comments separated per language, I see it can be useful in some cases but it is not for mine, a least for now, so I never used/tested it. Out of the box, no option is given to the user commentating in regard of classifying a post as being in any particular language.

Menus are great, I just need to customize the theme or the plugin to show a flag in mobile, between the icons of search and slide the menu. Right now is ok but (just one click away) but I kindda like gimmicks

You can have a look at http://www.infoporto.pt but I still have some bugs and it might not be the best example because it has some customizations and custom post types and custom post fields… I just started January and I have other things not related to the site it self to deal with… The hobbie became serious but I had to focus first on one language first because, in my case, there’s a will to have some depth in the differences of the contents of each language (2 so far, soon professionals will be hired to translate a more solid number). I also had delays in releasing “final” and complete version of my site cause of constant developments, newspaper seems to support child themes and custom post types now so I need to check out that first before continuing to fine tune the custom functions I already made.

securerr
tagDiv Member

Do I have to preserve folder structure (create respective folders inside the child theme folder) or just copy the file into the root child folder?

Thanks.

securerr
tagDiv Member

Hello,

Thanks, I edited the file, it helped.

So basically what I have to do to include the modifications into child theme is to copy the file into child theme folder?

Lucian
tagDiv Staff

Hi,

I see you have style added in the child theme that overwrites the main style: http://screencast.com/t/bTh11N2N and this also add a margin auto that overwrites the copywriter container and remove the margins making to look like that.

I suggest you remove the style from the child theme or use a custom css to overwrite it: http://screencast.com/t/07Fc3QKc

.td-sub-footer-copy {
margin-top: 8px !important;
margin-bottom: 8px !important;
}

Thanks

Lucian
tagDiv Staff

Hi,

If it work find using the main theme then the child theme and the changes added there must cause this. You need to make sure that you backup the current child theme install, remove it and set it up again from the latest theme version full theme folder: http://screencast.com/t/hdqp3Q4JLhU then add your changes again but check the modified files log to see if there isn’t any mortification to the code you also customized because you could need to adjust your implementation: http://tagdiv.com/td_deploy/Newsmag/changed_files_1.7.1_2.0.html

Thanks

Lucian
tagDiv Staff

Hi,

1/2/3 Unfortunately these theme features are built to work just with posts not pages and to make them support and use pages you need to customize the theme and practically rebuild the function for related articles or socials.
Currently we’re working on adding custom post types support for blocks so once this support will be implemented pages could also be used as CPT like you need them now. Sorry!

a) That section is set with css to have a maximum width of 252px, you can rewrite tat rule using this css: http://screencast.com/t/iQh6wzCx9M

.block-mega-child-cats {
max-height: 500px;
}

Add it in theme panel > custom css section.

b) Unfortunately not because the load more/infinite or next/prev pagination only works on blocks and it can’t be used on loops. Sorry!

c) If you can’t find it in trash to restore it: http://screencast.com/t/icNXEwjZ8rH you can rebuild it and use this content, it’s the demo contact page content: http://pastebin.com/eTt6WVNShttp://demo.tagdiv.com/newspaper/contact/

d) I see you have adjusted the category to use pages so the excerpt function may also need to be adjusted to return page content, I’m not sure but you can take a look at it here: http://screencast.com/t/FKJMzRKrKWpn

Hope this helps!
Sorry for the delay!
Thanks for the message!

srikanth
tagDiv Member

Thanks for the reply.. i found the following information from the plugin author …

Add related posts automatically after the post content by using a code snippet in your (child) theme’s functions.php file

add_filter( ‘the_content’, ‘add_related_posts_after_post_content’ );
function add_related_posts_after_post_content( $content ) {

//check if it’s a single post page.
if ( is_single() ) {

// check if we’re inside the main loop
if ( in_the_loop() && is_main_query() ) {

// add your own attributes here (between the brackets [ … ])
$shortcode = ‘[related_posts_by_tax posts_per_page=”4″]’;

// add the shortcode after the content
$content = $content . $shortcode;
}
}

return $content;
}

in our theme,can we put the code in the function.php directly ??

jk
tagDiv Member

Hello alin,
idid not manage to fix the appeareance of the menu, its actually noét menu its all the text, areas below the menu.. not sure how childtheme is linked to main theme. we did not change any styling or anything like that..

can you please help me…

cheers

jan

tyaakow
Participant
#0

Hi!

Im trying to remove gradient from the main menu.
How will I do that?

I’m editing the css in child theme.

gregy1403
tagDiv Member

latest version from functions.php .. why are some lines without url and yet reported in PageSpeed Insights?

registered scripts
archivesCW | http://www.cele.si/second/wp-content/plugins/archives-calendar-widget/jquery.archivesCW.min.js
aspexi-facebook-like-box | http://www.cele.si/second/wp-content/plugins/aspexi-facebook-like-box/js/aflb.js
jquery | http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
td-site-min | http://www.cele.si/second/wp-content/themes/Newsmag/js/tagdiv_theme.min.js
comment-reply | /wp-includes/js/comment-reply.min.js
registered styles
ual-style-css | 
archives-cal-classiclight | 
awesome-weather | 
opensans-googlefont | 
google_font_roboto_cond | 
google-fonts-style | 
td-theme | 
td-theme-child |  

https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.cele.si%2Fsecond&tab=desktop

  • This reply was modified 11 years by gregy1403.
gregy1403
tagDiv Member

Here is my speed booster file

<?php
/*
Plugin Name: tagDiv Speed Booster
Plugin URI: http://tagdiv.com
Description: Speed booster for Newspaper 6 and Newsmag 1.x themes - It moves the styles and all the scripts of the theme to the bottom when needed. It activates internal theme optimizations for better speed and it adds async js .
Author: tagDiv
Version: 4.1
Author URI: http://tagdiv.com
*/

define('TD_SPEED_BOOSTER' , 'v4.1');

class td_speed_booster {

private $style_footer_queue = array(); // here we keep all the stylesheets IDs that we want to move to the footer

private $is_ie = false; // if the browser is detected as IE, treat it differently

// here we keep the theme information
private $td_theme_name = '';
private $td_theme_version = '';
private $td_deploy_mode = '';

private $allowed_plugins = array(
'bbpress/bbpress.php',
'contact-form-7/wp-contact-form-7.php',
'jetpack/jetpack.php',
'js_composer/js_composer.php',
'td-speed-booster/td-speed-booster.php',
'font-awesome-4-menus/n9m-font-awesome-4.php',
'wordpress-seo/wp-seo.php',
'wp-user-avatar/wp-user-avatar.php',
'td-social-counter/td-social-counter.php',
'wp-super-cache/wp-cache.php'
);

// this class is instantiated at the bottom of this page
function __construct() {

add_action('td_wp_booster_loaded', array($this, 'start_booster'));
}

/**
* everything starts from here
*/
function start_booster() {
// read the theme version and name if defined
if (defined('TD_THEME_VERSION') and defined('TD_THEME_NAME') and defined('TD_DEPLOY_MODE')) {
$this->td_theme_version = TD_THEME_VERSION;
$this->td_theme_name = TD_THEME_NAME;
$this->td_deploy_mode = TD_DEPLOY_MODE;
} else {
return;
}

// detect IE 8 9 10 11
if (
!empty($_SERVER['HTTP_USER_AGENT'])
and (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']) or (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false))
) {
$this->is_ie = true;
}

// add hooks
add_action('wp_enqueue_scripts', array($this, 'css_mover'), 1002); // 1002 priority - because visual composer has 1000 and we use 1001 in the wp010 theme
add_action('wp_enqueue_scripts', array($this, 'js_mover'), 1002); // 1002 priority - because visual composer has 1000 and we use 1001 in the wp010 theme
add_action('wp_footer', array($this, 'render_footer_styles'), 15);

// hide the body only on IE and Newspaper 6+
if (
$this->is_ie === false
and $this->td_theme_name == 'Newsmag'
) {
//add_action('wp_head', array($this, 'hide_body_inline_css'), 15);
}

/**
* jetpack is 'special' - it has to be moved like this. It has now only one CSS
* the two hooks are needed!
* @since 27.05.2015
*/
add_action('wp_print_styles', array($this, 'jetpack_mover'), 10);
add_action('wp_print_footer_scripts', array($this, 'jetpack_mover'), 10);
}

/**
* jetpack is 'special' - it has to be moved like this. It has now only one CSS
* @since 27.05.2015
*/
function jetpack_mover() {
$this->move_style_to_footer_queue('jetpack_css');
}

/**
* here we move the css
*/
function css_mover() {
if ($this->td_theme_name == 'Newsmag') {
// wp 011 - Newspaper 6

//$this->move_style_to_footer_queue('bbp-default-bbpress'); //bpress old
//$this->move_style_to_footer_queue('bbp-default'); //bpress
$this->move_style_to_footer_queue('google_font_open_sans');
$this->move_style_to_footer_queue('google_font_roboto');
$this->move_style_to_footer_queue('contact-form-7');

if ($this->is_ie === false) {
// move style.css theme style
//$this->move_style_to_footer_queue('js_composer_front');
//$this->move_style_to_footer_queue('td-theme'); //this is the main style of the theme. It's only moved on Newspaper 6!
}
}

//@todo test on newsmag
$this->move_style_to_footer_queue('woocommerce_frontend_styles'); //old woocommerce?
$this->move_style_to_footer_queue('woocommerce-layout');
$this->move_style_to_footer_queue('woocommerce-smallscreen');
$this->move_style_to_footer_queue('woocommerce-general');
$this->move_style_to_footer_queue('bp-legacy-css');

$this->move_style_to_footer_queue('td-theme');

$this->move_style_to_footer_queue('font-awesome-four');

//move revolution slider css
$this->move_style_to_footer_queue('rs-plugin-settings');
$this->move_style_to_footer_queue('genericons'); //still rev slider
}

/**
* move the js
*/
function js_mover() {
global $wp_scripts;

//detect revmin - revolution slider and do not move jquery, the plugin outputs raw js in the page!
if( !is_admin() and !isset($wp_scripts->registered['revmin'])){
if (is_ssl()) {
$td_protocol = 'https';
} else {
$td_protocol = 'http';
}

wp_deregister_script('jquery');
wp_register_script('jquery', ($td_protocol . '://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'), true, '1.11.1', true);
wp_enqueue_script('jquery');
}

/**
* move javascript to footer
*/
$this->move_js_to_footer('themepunchtools');
$this->move_js_to_footer('td-site-min');
$this->move_js_to_footer('revmin');
$this->move_js_to_footer('archivesCW');
$this->move_js_to_footer('js_composer_front');
$this->move_style_to_footer_queue('archives-cal-classiclight');

//print_r($wp_scripts);
// replace comment-reply.min.js with inline version
}

/**
* here we render the footer styles
* the styles are already deregistered when you call @see move_style_to_footer_queue ($style_id)
*/
function render_footer_styles() {
//get the theme version for style
$current_theme_version = $this->td_theme_version;

//on demo mode, auto generate version hourly + day - so we get a fresh css hourly
if ($this->td_deploy_mode == 'demo') {
$current_theme_version = date('jG');
}

if (isset($this->style_footer_queue['td-theme'])) {
// whatever the order, make damn sure that our td-theme style is LAST - we remove it from the queue and add it again at the end
$td_theme_value = $this->style_footer_queue['td-theme'];
unset($this->style_footer_queue['td-theme']);
$this->style_footer_queue['td-theme'] = $td_theme_value;
}

// output the new styles
foreach ($this->style_footer_queue as $style_id => $style_src) {
echo "<link rel='stylesheet' id='" . $style_id . "-css' href='" . $style_src . "?ver=" . $current_theme_version . "' type='text/css' media='all' />\n";
}
}

/**
* prevent flickering of the image until the style is loaded
*/
function hide_body_inline_css() {
echo '<style>body {visibility:hidden;}</style>';
}

/**
* the id of the style can be found in the source of the page, for example:
* <link rel='stylesheet' id='td-theme-css' => the id is 'td-theme' (note that the '-css' part is missing)
* using this method you can move other styles if needed
* Moves a style to the bottom of the page
* @param $style_id string - the id of the style
*/
function move_style_to_footer_queue($style_id) {
global $wp_styles;
if (!empty($wp_styles->registered[$style_id]) and !empty($wp_styles->registered[$style_id]->src)) {
$this->style_footer_queue[$style_id] = $wp_styles->registered[$style_id]->src;
wp_deregister_style($style_id);
}
}

/**
* @param $js_id string - the js file id (this is a bit more complex to get) @todo -> add a tutorial about how to get the theme js
*/
function move_js_to_footer($js_id) {
global $wp_scripts;
if (isset($wp_scripts->registered[$js_id])) {
wp_enqueue_script($js_id, ($wp_scripts->registered[$js_id]->src), '', $wp_scripts->registered[$js_id]->ver, true);
}

}

}

new td_speed_booster();

and here is registered scripts

registered scripts
archivesCW | http://www.domain.com/second/wp-content/plugins/archives-calendar-widget/jquery.archivesCW.min.js
aspexi-facebook-like-box | http://www.domain.com/second/wp-content/plugins/aspexi-facebook-like-box/js/aflb.js
jquery | http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
td-site-min | http://www.domain.com/second/wp-content/themes/Newsmag/js/tagdiv_theme.min.js
comment-reply | /wp-includes/js/comment-reply.min.js
registered styles
archives-cal-classiclight | http://www.domain.com/second/wp-content/plugins/archives-calendar-widget/themes/classiclight.css
awesome-weather | http://www.domain.com/second/wp-content/plugins/awesome-weather/awesome-weather.css
opensans-googlefont | https://fonts.googleapis.com/css?family=Open+Sans:400,300
google_font_roboto_cond | http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700
google-fonts-style | http://fonts.googleapis.com/css?family=Open+Sans:400,700
js_composer_front | http://www.domain.com/second/wp-content/plugins/js_composer/assets/css/js_composer.css
td-theme | http://www.domain.com/second/wp-content/themes/Newsmag/style.css
td-theme-child | http://www.domain.com/second/wp-content/themes/Newsmag-child/style.css

Ben Iskander
Participant
#0

Hello,

for some reason the hover function on our menu is not working on Chrome – we have the latest version of the theme and we’re using a child theme.

The menu is working fine in Safari, Firefox and Opera. I have looked at the demo on the themeforest website and that works fine using Chrome so it looks as though it’s site-specific.

I did try using the Ubermenu plugin here so we could show our sub-menu’s as columns but decided against it and removed the plugin.

Any ideas? Our URL is http://www.weddingideastest.com

makeshiftwings
Participant
#0

Hello,

I am looking to update my theme from 4.6.1 to 6.3. I currently have WordPress Version 4.1.6 running and also wanted to update that but wanted to update the theme first. I have a few questions:

1. I have backed up all of the theme files currently on the FTP. If anything goes wrong, I can just restore those, right?
2. Should I update the theme before updating WordPress or the other way around?
3. I have primarily made changes to the theme in the Child. Theme files I have modified (because you couldn’t modify them in the child) are below:

Newspaper\js\td_site.js
Newspaper\js\full_compact\site.js
Newspaper\includes\shorcodes\td_authors.php
Newspaper\single_template_2.php
Newspaper\single_template_3.php
Newspaper\single_template_4.php
Newspaper\single_template_5.php

Will I have any issues with the new version having made changes to these files? Are any of these files changed from version 4.6.1 to 6.3?

4. Finally, can you summarize what the MAJOR changes from the two versions are? Thank you.

Andrei L.
tagDiv Member

Hi

You can use the child theme in that case and you can find the documentation here: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks

euzebius
tagDiv Member

We’ve changed the files to the new version and the Big Grid problem is solved.
However, the problem of Style in articles has not changed, the video featured not always appears not even using the official theme without child-theme. >>> http://www.photophoto.fr/8-la-nebuleuse-orion-m42-en-time-lapse-un-voyage-dans-le-ciel-profond/ , http://www.iphonologie.fr/5677-concept-iphone-7-en-video-chargement-sans-contact-verre-saphir-ecran-qhd-et-apn-16-megapixels/

Alin [tagDiv]
tagDiv Staff

Hi,

Please check this using the main theme and see if you still have this issue, as I have checked your site and seems that the style.css file from the child theme is an old version – http://screencast.com/t/imHZGArQ98p2
Let me know how it goes!

Thanks!

securerr
tagDiv Member

Hello,

Thanks! But as I understand, this modification won’t preserve after an update. How can I add it so a child theme?

Thanks.

euzebius
tagDiv Member

We have updated all the plugin tagDiv of the theme and the child theme to V6.3 but the problem has not changed.
* Revolution Slider : 4.6.93
* tagDiv Social counter : 3.0
* tagDiv Speed Booster : 4.1
* WPBakery Visual Composer : 4.5.3

All the Big Grid 1, 2 and 3 on the Visual Bakery are disordered on pages. >> http://www.photophoto.fr/materiels/ http://www.iphonologie.fr/ios-9/
Also, the Styles 9, 10 and 11 does not display the youtube/vimeo videos to featured video on articles. It is only a background image and not video.

How to solve its problems?

Alin [tagDiv]
tagDiv Staff

Hi,

If you want to use child theme to overwrite the files from main theme and don’t lose the custom modifications when you update the theme you don’t have to upload the api plugin. The api plugin was created for advanced users so they can create new modules,blocks, templates as you can see in the documentation – https://forum.tagdiv.com/the-theme-api/

Thanks!

Viewing 25 results - 11,826 through 11,850 (of 12,866 total)