- NewspaperChild Theme Support
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to Update the Newspaper Theme
- NewspaperWhat’s Included in the Newspaper Theme Package
- NewspaperFlex Block Settings Guide
- NewspaperPrimary Category: Build a hierarchy for your website
- NewspaperBreadcrumbs
- NewspaperHow to Install Newspaper via FTP
- NewspaperHow to Install Newspaper via WordPress
OK, missing code identified, I’m not sure exactly where it should sit in the long stream of CSS, but placing this entry at the bottom of the main CSS file or in the theme child or custom areas will work.
.td-big-grid-title .td-sbig-title-wrap a:hover{
color: white !important;
}
Please look into this to make sure it’s fixed in the next release. Thanks!
Yeah, I’m finally realizing the pain of too many hacks, even in a child theme… If I replace enough of the files and functions in a child theme so it can survive updates, the effectiveness of an update is diminished anyway :p
I’ve worked out a couple issues, however there are still problems everywhere I go. When I use child categories it appears in the modules when I select featured but not when I select another category. Both have subcategories but they only appear on the modules when I select the featured (not features from the theme).
Thanks Lucian !! I copied the loop.php to child theme folder, added the code as advised, setup Custom ad 1 & it works just fine !! 🙂
Hi,
Should work, please also make sure you have installed the VC plugin from plugins folder within the files that came with the theme files, like this: https://forum.tagdiv.com/update-the-visual-composer-plugin-wpbakery/
Are you using child theme, make sure you try this using the main theme also make sure you have updated the theme right and you have uploaded all files.
You can also try to make a backup of your current installation and re-upload theme files via FTP.
Thanks
Thanks for the advice. I copied the lines for the button styling from the js_composer.css file into another css file and then imported that new btn_styling.css file into the child theme. Works great.
This is a quick fix for anyone else with the same problem.
Hi,
Please use the main theme to check if this issues also occur when using the main theme and if not make sure that you are using the child theme right: https://forum.tagdiv.com/child-theme-documentation/
Keep in mind that if you are using the child theme you need to follow the theme change log and modify the files you have changed.
Thanks
@reenamm
I just solved in this way, but I’d like to know from TagDiv’s crew if it’s ok:
in my child theme’s custom css, I’m importing the right css from Visual Composer’s assets folder, in this way:
@import url("../../plugins/js_composer/assets/css/js_composer.css");
Look at my page now
http://mailneo.biz/about-neomobile/
Why doesn’t the theme load it by itself?
Hi Lucian,
nothing we talked about solves the problem in my case =(
I have:
- Theme Version 4.3
- Visual Composer Version 4.3.4 (deactivated, uninstalled and reinstalled several times from your package)
- Child theme running (I also tried to activate the main theme)
- I deactivated all plugins and tried again but it doesn’t work
Anyways, in your screenshot http://screencast.com/t/h8547NHbMdVa Button 2 is not stylized like Visual Composer edit page does, but they come out both with your own style. Instead I’d like to have both different styles, Visual Composer’s and yours.
In your example what should be the actual difference between “Button” and “Button 2”?
Thanks!
Hi,
You could use the child theme and only change the files there, but a change due to an update to the files you have already changed using child theme would mean that you will also need to make that changes one again. Here you have the documentation for the child theme: https://forum.tagdiv.com/child-theme-documentation/
Other solution for this would be to make a copy of the file you changed content/code and when the theme updates just replace the file content/code with the one you have, the same way here, you will need to follow the change log on each theme, update to check if the file you have didn’t change within that update,
Thanks
Hi,
I was using child theme with some customization with it, but as i update the theme to the latest version, my single post displaying blank page, please have a look http://www.cookingrecipes.com.pk/prawns-noodles/
i deactivated the tagDiv speed booster plugin and after deactivating this error appears
Fatal error: Call to undefined method td_module_1::get_bread_crumbs() in /home/cookpk/public_html/wp-content/themes/Newspaper-child/loop-single.php on line 11
Thanks Emil for letting me know. Can you please guide me how can i add a Print Button. I need the code and files to edit. Further, Can i do this in child theme.
Thanks
Okay. That would be a problem 🙂
Maybe reinstall the theme, via FTP, to be safe.
If using a child theme you may need to switch to the main theme for update, then switch back to child theme, as some seem to do (I don’t use child theme methodology due to speed issues and gremlins).
-
This reply was modified 11 years by
simchris.
Heh. I actually skip every couple of updates and then do my list of minor hacks; not really much of a way around it. Also notable is that you don’t have to update unless it’s for a security patch, resolved feature issue, bugfix, new feature, etc.
Usually what I do, vs using child themes, is keep a cheat sheet, much like you are doing in your list above, and then open my cheat folder, and my new version folder side by side, then go through each item and modify the new version for my fixes to keep them.
Tedious, but once you have your site the way you want it, you don’t need to get crazy about “oh no! there’s a new update!” — if your site WORKS, in some cases no reason to update every day. I have a site with Woo Canvas, and I skip every 5 updates until I see a need to do so, or if it fixes some wonky responsive issue. Site works, big whoop if they updated it last week.
Often you can look at the “what is new” summary, and decide if that works for you.
I skipped the 4.22 update, and 4.3 and will update on 4.3.1 of Newspaper. But that’s me.
You can use a child theme, just remember for some CSS and javascript things you may find a gremlin which you cannot track down for any specific reason other than you are basically running two themes at same time.
Another benefit of using ONE main theme, is you can also more readily optimize your wp-config.php file to include direct paths to your folders and know they will always work.
Child themes are indeed handy. Christopher recently said he doesn’t use them because of the pagespeed slowdown in CSS importing, if I understood him right, which is valid but it does prevent things like this. If you’re a heavy modifier of files, each update will be painful…
Child themes basically make WP use the version of the file in the child theme rather than the parent theme’s, if one exists. Hence your changes would survive updates.
Also, not all of those files can be modified in a child theme (I believe td_wordpress_booster.php can’t, for example). For those ones, you would have to copy the function in question into your child theme’s functions.php, make your changes, and rename the function. Then either change all references to the function in other files, or it’s a hooked action or filter, unhook the parent functions and hook yours in. (There are a few tutorials out there for this.)
Even if you use a child theme, you would want to watch for updates that affect functions and styles you’ve changed and do your changes over again, but it’s not as big a deal.
A block 10 is also included in the latest update, so you’d want to rename your custom one to avoid it being overwritten.
Hi,
Can anyone guide through the best way to upgrade the theme. I’m currently on v4.1 and that’s 4 versions behind. The biggest problem is that I have made changes to many files including the following.
style.css
loop-single.php
td_module_blog.php
td_block_layout.php
td_block_10.php (New block created by me!)
td_block_side.php
td_wordpress_booster.php
and lot more!!!
The ideal and the tedious way would be to manually diff the files and make the changes but that would eat up hell lot of days if not weeks!!! BTW haven’t researched about child themes. Would that be handy?
I would greatly appreciate if someone can help me with this!
CSS for line under menu, to be entered in Theme Panel -> Custom CSS:
.td-menu-background:after {
background: transparent !important;
}
Spacing and border between menu items:
.sf-menu > li > a {
padding: 0px 0px 0px 0px !important; /* top, right, bottom, left*/
border-right: 1px solid #eee !important;
}
Adjust values as desired. Note that at present you don’t have to think about first and last child of the menu as long as you don’t remove the search button (because it’s not a list item).
The point about it being easier is true. But just in case having original box is strongly desired… 🙂
1. Find the ID of the user you want to hide by editing the user and looking in the address bar. E.g. you might see “http://yoururl…/wp-admin/user-edit.php?user_id=940” in which case the ID is 940.
2. In the Newspaper theme files go to includes/modules/module_modifier/td_module_blog.php.
3. Find the function that begins with:
function get_author_box($author_id = '') {
if (!$this->is_single) {
return;
}
if (td_util::get_option('tds_show_author_box') == 'hide') {
return;
}
if (empty($author_id)) {
$author_id = $this->post->post_author;
}
4. Add this after the part I just quoted:
if ($author_id == '940') { // Replace with the ID you found
return;
}
That’s the if statement Kronos means and it just returns nothing for the author box if it’s the author you want to hide. Save and/or upload the file and check an article where you don’t want to see it.
P.S. That file can be modified in a child theme to survive theme updates automatically.
-
This reply was modified 11 years by
TheMediumUTM.
Thank you! I’ve meant that the subcategories look like categories in sidebar if i don’t choose to show them hierarchy in category widget, but as Christopher wrote, this is WordPress thing, not the theme’s.
I’ve removed the subcategories from sidebar using this
.children{
display:none;
}
Hi,
The files that can be modified using the child theme are pointed here: https://forum.tagdiv.com/child-theme-documentation/
Unfortunately the td_module file can’t be modified via child theme, I have also tested this and didn’t work.
You can use the solution TheMediumUTM suggested or you can make the changes into the main theme files.
Thanks
Hi,
Right now I can see that the blog page it’s set as your homepage, you can change this from WordPress Dashboard > Settings > Reading and chose a page you designed as your homepage: http://screencast.com/t/vdcOwLKH6s
You can create the same layout and design for your homepage like this:
1. First add a new page, add a name for it(which you will set in the Reading settings as a homepage), after this set the template, then switch to “Classic mode” like this: http://screencast.com/t/rBoKKS5a0F
2. Secondly change the to “text” view and add the code from below, like this: http://screencast.com/t/TnCeQsNyXfn
The code for the homepage:
[vc_row el_position="first last"][vc_column][td_slide_big limit="8" tag_slug="taggggggg"][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block2 limit="6" custom_title="DON'T MISS" ajax_pagination="next_prev" show_child_cat="all" category_id="19"][td_block1 limit="5" header_color="#f65261" custom_title="TECH AND GADGETS" ajax_pagination="next_prev"][td_ad_box spot_id="custom_ad_1"][td_block2 limit="6" custom_title="TRAVEL GUIDES" ajax_pagination="next_prev" header_color="#82b440" sub_cat_ajax="n"][/vc_column][vc_column width="1/3"][vc_widget_sidebar sidebar_id="td-demo-1"][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block2 limit="6" custom_title="FASHION AND TRENDS" ajax_pagination="next_prev" header_color="#ff3e9f"][/vc_column][vc_column width="1/3"][td_block4 limit="1" custom_title="EDITOR PICKS" ajax_pagination="next_prev" header_color="#2b2b2b"][td_ad_box spot_id="sidebar"][vc_wp_tagcloud taxonomy="category"][/vc_column][/vc_row][vc_row][vc_column width="1/1"][td_ad_box spot_id="custom_ad_1"][/vc_column][/vc_row]
3. After this switch back to “Backend Editor” and customize the blocks with your content by editing them from here: http://screencast.com/t/0TjfKvN8U18 Do the same for sliders, sidebars, widgets, you can do it as you like.
4. Finally go to WordPress Dashboard > Settings > Reading and set the “Front page displays” as a static page and select your newly created homepage instead of the blog page.
Please make sure you follow our documentation, we have added there guides on how to use the theme right.
Hope this helps!
Thanks
I keep a folder with copies of the files I hack each update so I can remember them at a glance, a text file with my additions to put at bottom of functions.php and note as to which section by line number x-x to remove; and a text file with cheat sheet of the search/replace for the style.css file. Not too painful. Kind of started when I had existing read/hit counter and needed to update the module to load the existing “field” vs the one used by Newspaper for hit counting. Then it was uncommenting the author byline each time in the main post file. Then it was the custom font loading. Well, there you are. As long as I have my local “cheats” folder, I can usually open two windows with both old stuff and new version of theme and then just top to bottom change stuff in new update folder, and then upload to server and it’s like nothing changed for the stuff I modified.
And, benefit is the style redirect issue that Google doesn’t like with child themes, and much easier to deal with any custom css over-rides as well as issues with tagdiv’s in house speedbooster plugin, etc.
At least this has been my experience 🙂
You are so right. I’ve been using the child theme so that my styling won’t get messed up or lost during an update. Might need to rethink that one.
Thanks again!
Suzanne