Blimey! That was somewhat easy. Strange because I copied and pasted my code direct from the WordPress instructions on creating a child theme.
That seems to have worked, I’ll slowly try to add back in the changes I had made on 7.2.
Brian
Hi, Brian here.
Yes the site works with vanilla 7.3 and the sidebar is fine.
However: I’m trying to get a child theme working and every time I turn the child theme on the homepage messes up and the sidebar disappears.
Here’s what I’ve done:
Folder called: Newspaper-7_3-IC-Child
style.css
/*
Theme Name: Newspaper 7.3 Israellycool Child Theme
Theme URI: https://themeforest.net/item/newspaper/5489609?s_rank=1
Description: Newspaper 7.3 Israellycool Child Theme
Author: Brian of London
Author URI: http://www.israellycool.com
Template: Newspaper
Version: 7.3 [corresponds to theme version 7.3]
*/
functions.php
<?php
// Added by Brian of London BoL 2016-07-20
// Updated 2016-08-18 to try to rework after 7.3
// switched from old method of child theme loading
// "Note that the previous method was to import the parent theme stylesheet using @import:
// this is no longer best practice, as it increases the amount of time it takes style sheets to load. "
//
//
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; //
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
That’s it, no other changes made yet (I’ve got a screenshot.png file in the folder too).
As soon as I select that child the sidebar suddenly jumps to the bottom of the page, before the footer.
Hi there – I’m Dave’s slightly more technical sidekick.
So I switched back to the unedited theme. Then replaced 7.2 with 7.3 and all seemed to work.
I tried making a cut down version of the child theme that overrides nothing at all but even that seemed to halt the side bar.
At the present time (after switching back to the unaltered 7.3) the sidebar space is there but it doesn’t seem populated. I’ve flushed caches on the server (Litespeed) and with Cloudflare.
We’re also seeing this issue. We’re on 7.2.
/wordpress/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=7.2
Can you give a clue how to change pagination? I can’t find it in the interface.
Our web host applied the following cludge which has at least dropped our CPU problem and fixed an issue where we had blank screens after posting new articles.
I just put in a block for the admin-ajax.php file, and immediately your CPU usage dropped. I suspect you need to work with your theme vendor to understand why it is POSTing to admin-ajax.php. Once you have fixed that you can remove the .htaccess file at /var/www/vhosts/israellycool.com/httpdocs/wordpress/wp-admin/.htaccess or I can do that for you.
-
This reply was modified 9 years by
David L.
Ignore earlier post… I thought there was an extra Div but it’s not there.
I think the following code in 7.3 in the file td_module_single_base.php is a bit of an issue.
Line 69 :
$buffy .= '<div class="td-post-author-name"><div class="td-author-by">' . __td('By', TD_THEME_NAME) . '</div> ';
has a </div> tag that I don’t think should be there.
I’ve reverted back to 7.2. Home page disappeared for me with this upgrade.
//$show_stars_on_review - not used
function get_author() {
$buffy = '';
if (td_util::get_option('tds_p_show_author_name') != 'hide') {
$buffy .= '<div class="td-post-author-name"><div class="td-author-by">' . __td('By', TD_THEME_NAME) . '</div> ';
$buffy .= 'post->post_author) . '">' . get_the_author_meta('display_name', $this->post->post_author) . '' ;
if (td_util::get_option('tds_p_show_author_name') != 'hide' and td_util::get_option('tds_p_show_date') != 'hide') {
$buffy .= '<div class="td-author-line"> - </div> ';
}
$buffy .= '</div>';
}
return $buffy;
}
Grrrr I tried… really. CSS always does my head in.
When I paste in the exact CSS that works for the main site nothing happens.
When I search through that file and cut out the offending bits and replace them, nothing happens.
Not sure what I’m doing wrong:
/* Changed by Brian of London 2016-05-09 */
/* Justify block quotes and move them to the right 10% */
.td-page-content blockquote p,
.td-post-content blockquote p,
.wpb_text_column blockquote p,
.td_block_text_with_title blockquote p,
.bbpress blockquote p,
.woocommerce #tab-description blockquote p,
.mce-content-body blockquote p,
.comment-content blockquote p {
font-family:inherit;
font-size:inherit;
line-height:inherit;
font-weight:inherit;
font-style:italic;
text-align:justify;
text-transform:inherit;
color:inherit;
padding-left: 10%;
padding-right: 5%;
/* responsive portrait tablet */
/* responsive portrait phone */
}
/* font-family: 'Roboto', sans-serif; */
/* font-size: 32px; */
/* line-height: 40px; */
/* font-weight: 400; */
/* font-style: italic; */
/* text-align: center; */
/* text-transform: uppercase; */
/* color: #4db2ec; */
/* word-wrap: break-word; */
The CSS works fine for the pages that visitors see on the blog.
It’s only when composing that the author sees a hard to work with format (the block capital letters in particular make editing hard because copy pasting picks up the all caps).
Screen shots:


-
This reply was modified 10 years by
David L.
Him
Thanks for your response.
I am not at all conversant in this coding. What exactly do I need to type and where?
Please enter it here and not in a screenshot so I can copy and paste easily.
Regards,
David
Hi,
Never mind. One of my authors figured out how to do it.
Regards,
Davd
