Search Results for 'child theme'

    No search results were found in Documentation!

Results from the Forum
CtrlP Press
tagDiv Member

My advice, since these folks are asleep right now–and I am a complete noob just started 2 months ago, so take this with a grain of NaCl:

1. Read all the theme documentation AND Chris’ sticky thread in this forum on switching themes
2. Backup your site
3. Create a child theme

I am not sure what you mean after that, but I’m guessing you like the look of the Classic Blog Stack’s homepage?

If so, on the Theme Panel > Welcome Page… Import Predefined Style (stack)… choose “Classic Blog” (if that’s your preference, “Default” or something else if not) and it should import the desired look without importing any posts or pics etc, like importing the entire demo would.

If you have done the first 3 steps, then you should have no worries about breaking the site.

Ahhh… now I think I understand… Judging by your post, all you have done is create a new page that is based on a basic template. If you already like the theme’s homepage with no changes, that’s not necessary, the theme will generate the home page itself, and its look will depend on which style or stack you import.

Best of luck!

Alin [tagDiv]
tagDiv Staff

Hi,

I guess that you use child theme, we know about this issue with grid when child theme is used and it will be fixed in the next update. Please switch to the main theme and see if it works and let me know. Sorry for inconvenience!

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

We also have investigated this and seems to be an issue with the grid when the child theme is used, it will be fixed in the next update.

Sorry for inconvenience and thanks for reporting this!

Heatislap
tagDiv Member

installed all the old files, could not find the old child theme, but i am also getting this code

without object from outside a class in /home/content/00/10923500/html/3/wp-content/themes/Newspaper/includes/wp_booster/external/class-tgm-plugin-activation.php on line 1835

Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /home/content/00/10923500/html/3/wp-content/themes/Newspaper/includes/wp_booster/external/class-tgm-plugin-activation.php on line 1835

the website is http://www.kurvesncakes.com

Alin [tagDiv]
tagDiv Staff

Hi,

If you use the child theme you can try to make this change there in the modules folder > module that you want to change and the custom css you can paste it in Theme Panel > Custom Css: http://screencast.com/t/umCDttYYX
If you don’t have basic php/html/css experience I suggest to get someone to help you as we cannot provide any type of custom work at this time, sorry!

Thanks!

Emil G
tagDiv Staff

Hi,

You have to check the API documentation here: – https://forum.tagdiv.com/the-theme-api/https://forum.tagdiv.com/the-child-theme-method/

An example for block 1 template file would be:

<?php
/* ----------------------------------------------------------------------------
WordPress booster framework - this is our theme framework - all the content and settings are there
It is not necessary to include it in the child theme only if you want to use the API
*/
if (!defined('TD_THEME_WP_BOOSTER')) {
include TEMPLATEPATH . '/includes/td_config.php';
include TEMPLATEPATH . '/includes/wp_booster/td_wp_booster_functions.php';
}
add_action('td_global_after', 'hook_td_global_after'); // hook used to add or modify items via Api

function hook_td_global_after() { 

td_api_block::update_key('td_block_1', 'file', get_stylesheet_directory() . '/includes/shortcodes/td_block_1.php');

}

Thank you!

  • This reply was modified 11 years by Emil G.
yannc04
tagDiv Member

Hi,
Thanks but I don’t work with the child theme.

kevinvp
tagDiv Member

If you work with a child theme, you have to update these files too. I had a similar issue with fully blank pages.

RDodds82
tagDiv Member

I can also confirm that on the child theme the grids box is smaller and causes the other boxes to go to another row.

v1ktor
tagDiv Member

I found that you have to replace all shortcodes since in v6 they are gone and are placed with simple HTML blockquotes. I had to run search/replace on the database to get all shortcodes replaced with proper HTML tags.

Also, I found during upgrade you will most likely need to “import” dummy content but without content. So it imports settings, otherwise it looks like crap.

Typography is also gone, it’s not imported automatically even if you use their v4 to v6 upgrade. All fonts reset to default.

If you’re using child theme from v4, you must replace top portion of the functions.php, it changed and will cause issues. Just compare new v6 child functions.php and replace your old default part at the top with the new code.

Same goes for header.php and footer.php, they’ve made changes so you need to make sure if you have customer header.php and footer.php in your child theme that you compare these files to v6 files and update necessary code to match v6. They are different from v4, you’ll get blank screen.

cem
tagDiv Member

thx Alin
unfortunately I’m not able to resolve the issue. At this moment all plugins are deactivated except composer and I get

Fatal error: Call to undefined function get_base_recaptcha_lang_code

I think I played too much with fucntion.php would be cool if someone would take a look and I think the prob for the jquery messages may lay here too.

EDIT: ok I commented the lang part out and now it works, somehow it was anyway double. The slider is also visible now though the thumbs and image are scaled too large, how can fix that one ?
On the jquery error before I assume I activate plugins one by one and see where the pain comes right ? and off I go..

<?php

/*  ----------------------------------------------------------------------------
    WordPress booster framework - this is our theme framework - all the content and settings are there
    It is not necessary to include it in the child theme only if you want to use the API
*/
if (!defined('TD_THEME_WP_BOOSTER')) {
	include TEMPLATEPATH . '/includes/td_config.php';
	include TEMPLATEPATH . '/includes/wp_booster/td_wp_booster_functions.php';
}

/*include theme.js under newsmag to put modal image on*/
/* include theme.js*/

/*wp_enqueue_script( 'theme-js', get_stylesheet_directory_uri() . '/js/theme.js', array( 'jquery'), NULL, TRUE );*/

remove_action( 'wp_head', 'wp_generator' ) ;
 remove_action( 'wp_head', 'wlwmanifest_link' ) ;
 remove_action( 'wp_head', 'rsd_link' ) ;
 remove_action( 'wp_head', 'feed_links', 2 );
 remove_action( 'wp_head', 'feed_links_extra', 3 );

 add_filter( 'pre_comment_content', 'wp_specialchars' );

 function no_errors_please(){
   return 'You appear to be up to no good. Please stop now!';
 }
 add_filter( 'login_errors', 'no_errors_please' );

 // and we hook our function via
 add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );

 function delete_enclosure(){
  return '';
  }
  add_filter( 'get_enclosed', 'delete_enclosure' );
  add_filter( 'rss_enclosure', 'delete_enclosure' );
  add_filter( 'atom_enclosure', 'delete_enclosure' );

// function remove_cssjs_ver( $src ) {
//     if( strpos( $src, '?ver=' ) )
//         $src = remove_query_arg( 'ver', $src );
//     return $src;
// }
// add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
// add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

 add_filter( 'jpeg_quality', create_function( '', 'return 65;' ) );

//remove render blocking by jetpack
add_filter( 'jetpack_implode_frontend_css', '__return_false' );

 function remove_pingback_url( $output, $show ) {
     if ( $show == 'pingback_url' ) $output = '';
     return $output;
 }
 add_filter( 'bloginfo_url', 'remove_pingback_url', 10, 2 );

// add_action('init', 'myoverride', 100);
 function myoverride() {
     remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}

function dequeue_visual_composer_css() {
if (is_single()) {
    wp_dequeue_style('js_composer_front');
}
}

// Defer jQuery Parsing using the HTML5 defer property
if (!(is_admin() )) {
    function defer_parsing_of_js ( $url ) {
        if ( FALSE === strpos( $url, '.js' ) ) return $url;
        if ( strpos( $url, 'jquery.js' ) ) return $url;
        // return "$url' defer ";
        return "$url' defer onload='";
    }
    add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
}

// Remove WP version number from js and css files.
function remove_cssjs_ver( $src ) {
    if( strpos( $src, '?ver=' ) )
        $src = remove_query_arg( 'ver', $src );
    return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

function tweakjp_add_sharing_js() {
    wp_enqueue_script( 'sharing-js', WP_SHARING_PLUGIN_URL . 'sharing.js', array( ), 4 );
    $sharing_js_options = array(
        'lang'   => get_base_recaptcha_lang_code(),
        'counts' => apply_filters( 'jetpack_sharing_counts', true )
    );
    wp_localize_script( 'sharing-js', 'sharing_js_options', $sharing_js_options );
}
add_action( 'wp_enqueue_scripts', 'tweakjp_add_sharing_js' );
 
function tweakjp_add_sharing_css() {
    wp_enqueue_style( 'sharing', WP_SHARING_PLUGIN_URL. 'sharing.css', false, JETPACK__VERSION );
}
add_action( 'wp_enqueue_scripts', 'tweakjp_add_sharing_css' );
  • This reply was modified 11 years by cem.
modernmavens
Participant
#0

Hi,

I’m getting the error below when I click into one of the article.

Fatal error: Call to undefined method td_module_1::get_commentsAndViews() in /home2/fionaloh/public_html/modern-mavens.com/wp-content/themes/Newspaper-child/loop-single.php on line 36

2) The HOME logo no longer exist?

3) I can’t find the child theme that comes with the Newspaper 6?

4) How do I change the full width of Big Grid 2 to the previous Big Slide size?

Thanks

wildmercury
tagDiv Member

Could you explain how to do this for a Child theme? Can’t see an example of the API Child Theme method that applies to shortcodes replacement/update ie replacing /includes/shortcodes/td_block_authors.php.
Thanks

wildmercury
tagDiv Member

Child theme updated / replaced with the latest version, all caches cleared etc. Still an issue. The only Big Grid that fits is the Big Grid Slide. All others wrap over. Comparing Slide with Grid 2 – Slide is set in a 1068px wrapper div and Grid 2 set in a 1050px (inherited) width div, with 741px main and 324px additionals for both.

Alin [tagDiv]
tagDiv Staff

Hi,

Please make sure that you have also update the child theme at the latest version, because the old version will not work fine. It should work fine as it was tested and also we work to the API documentation it will be available soon. Until then you please use the main theme as only files from the root of the theme can be overwritten.

Thanks!

zoedesign
tagDiv Member

however it did not work
I added it to child theme and the I added it to parent theme
both did not work

simchris
tagDiv Member

Remember when updating to DELETE old theme and TD plugins, and upload NEW theme and plugins; including NEW child theme if you use one!

Try using my sticky upgrade guide or you may be sorry.

It’s a new version of theme; you may need to redo your home page for some modules, and reset sidebars.

It’s an UPGRADE not an update.

simchris
tagDiv Member

Remember when updating to DELETE old theme and TD plugins, and upload NEW theme and plugins; including NEW child theme if you use one!

Try using my sticky upgrade guide or you may be sorry.

It’s a new version of theme; you may need to redo your home page for some modules, and reset sidebars.

It’s an UPGRADE not an update.

simchris
tagDiv Member

Might not help … but … when in doubt …

Remember when updating/major upgrade .. to DELETE old theme and TD plugins, and upload NEW theme and plugins; including NEW child theme if you use one!

Try using my sticky upgrade guide or you may be sorry.

It’s a new version of theme; you may need to redo your home page for some modules, and reset sidebars.

It’s an UPGRADE not an update.

simchris
tagDiv Member

Remember when updating (UPGRADING) … to DELETE old theme and TD plugins, and upload NEW theme and plugins; including NEW child theme if you use one!

Try using my sticky upgrade guide or you may be sorry.

It’s a new version of theme; you may need to redo your home page for some modules, and reset sidebars.

It’s an UPGRADE not an update.

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

Remember when updating to DELETE old theme and TD plugins, and upload NEW theme and plugins; including NEW child theme if you use one!

Try using my sticky upgrade guide or you may be sorry.

It’s a new version of theme; you may need to redo your home page for some modules, and reset sidebars.

It’s an UPGRADE not an update.

wildmercury
Participant
#0

I’ve just upgraded the theme – and dealt with all the child theme issues and plugin issues… That was not cool – so glad the client site is not yet public.

Anyway – even though I have reset the child theme back to defaults, my big grids are hitting a width issue, they show fine when I swap back to the parent theme, but when I view with the child theme the container width gets smaller and the subsidiary posts roll over onto a new row.

Please advise.

Carel
Participant
#0

I did the update to V6, installed everything ( including child theme and td-api-plugin) and I have no more blocks….
Blocks are not recognized. I have only the shortcode which appear on screen. And when i go on the page editor, i cannot select any block through visual composer. They are not listed…

Alin [tagDiv]
tagDiv Staff

Hi,

Unfortunately the theme doesn’t have an option for this, but you can add a border using custom css in Theme Panel > Custom Css – http://screencast.com/t/l8ffqjr5Hcc but this it will apply anywhere you use module 10. You will need custom work to achieve that, eventually add an extra class to column where you use block 10 to target only that block – http://screencast.com/t/oH1JgW8X7MU6 and if you want a different color you can use nth-child selector – http://www.w3schools.com/cssref/sel_nth-child.asphttp://screencast.com/t/3ZzQIuaJAcS

Thanks!

shubhra
tagDiv Member

More articles box is using includes/modules/td_module_1.php. This file can’t be copied to the child theme, so you will have to edit the core.

Viewing 25 results - 12,026 through 12,050 (of 12,866 total)