- NewsmagChild theme support
- NewspaperChild Theme Support
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewsmagWhat’s included in Newsmag theme package
- NewspaperHow to Update the Newspaper Theme
- NewspaperWhat’s Included in the Newspaper Theme Package
- ApiThe Theme API
- NewspaperFlex Block Settings Guide
- NewspaperPrimary Category: Build a hierarchy for your website
- NewsmagCustom Post Type Support
- NewsmagInstall via WordPress
- NewsmagInstall via FTP
- NewsmagBreadcrumbs
- NewspaperBreadcrumbs
- NewspaperHow to Install Newspaper via FTP
- NewspaperHow to Install Newspaper via WordPress
My authors want to have a hyperlink on each excerpts on the home page..
I tried with plugins, tried to edit functions.php ( I use child theme ! ) but no success.
Soon we will have multi-language magazine – and that makes this request more difficult – ‘cos “READ MORE>>>” also have to be translated…
tagdiv block 4
1
excerpt -read more link but especially on the home page – block 4, block 3
This tuto not works at the moment..:
http://www.wpbeginner.com/wp-tutorials/how-to-display-a-read-more-link-in-wordpress-excerpts/
// Changing excerpt more
function new_excerpt_more($more) {
global $post;
return ‘… <a href=”‘. g
,et_permalink($post->ID) . ‘”>’ . ‘Read More »’ . ‘‘;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);
Could you guys give me ideas how to make it?
this would be applies to home page only:
http://www.1000wordsmagazine.com
Thx, Zoltan
Hello,
I have added the code below in td_config.php inside the function “get_map_filter_array ($group = ‘Filter’)” for a new filter “post_format”.
array(
"param_name" => "posts_format",
"type" => "textfield",
"value" => '',
"heading" => 'Post Format Filter:',
"description" => "Filter the post format you want to display: type 'video' or 'gallery'",
"holder" => "div",
"class" => "",
'group' => $group
)
This code work, but I use the child theme, how can I add this code trought function.php? If I overwrite td_config.php in my child theme not work, isn’t read.
Thank you
What can be overwritten by the child theme:
Yes. Put the code below this code inside the functions.php for the child theme.
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1001);
function theme_enqueue_styles() {
wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', TD_THEME_VERSION, 'all' );
wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), TD_THEME_VERSION . 'c', 'all' );}
(I don’t work here).
Hello,
I’am new to child themes. But I need to add a code line into the functions.php
How do I add that.
Just install the child theme and put it in or is it not that easy?
Code:
/**
* separate media categories from post categories
* use a custom category called ‘category_media’ for the categories in the media library
*/
add_filter( ‘wpmediacategory_taxonomy’, function(){ return ‘category_media’; } ); //requires PHP 5.3 or newer
Thank’s
Thank you for your prompt reply.
We have created these images and have replaced them with file sizes and names intact, as per your instructions. However we are afraid in case there’s a theme update, it will overwrite all images. Is there no other way for putting these images in child theme.
We want to replace no-thumb watermark images (*.png) under the main theme folder wp-content/themes/Newspaper/images/no-thumb for which we added a child theme folder wp-content/themes/Newspaper-child/images/no-thumb and placed all new thumbnail files. But new thumbnail files are not shown. How to get new thumbnails in our website.
Unfortunately a child theme is not update proof as well. There is no update proof way of altering the theme files. The css method is the only update proof one as you can place the css code in the theme panel and it will not get removed.
As an alternative you can use jquery the remove the code like so:
jQuery(document).ready(function(){
jQuery(".td-related-right").remove();
});
https://www.screencast.com/t/dnVIbhAKm
Thank you!
I have taken the 3 variant, now I can make sure this update? Since after each update the changes are gone, I’m using Child Theme, it has to go that way, right?
Hello,
We try to inject code into an ad slot. The Criteo Tag (Non adsens) in the “ARTICLE INLINE AD” slot.
The ad does not appear on the site (Empty and white space, like you can see in the screenshot) and can not be found on the source code of the pages in which it should appear.
We tried to inject the tag directly before the </ body> tag. The ad showed at the end of the page, why we think the problem comes from the theme.
SIte: https://observalgerie.com
Here is the code (placement Article Inline Ad):
<!– BEGIN 1257343 – obervalgerie – FR – CDB – PCK – In article sur desk –>
<div id=”criteo_1257343″>
<script type=”text/javascript”>
var passback2 = function(){
//– Create the script
var script = document.createElement(‘script’);
script.src = “https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”;
//– Creating the ins
var ins = document.createElement(‘ins’);
ins.className = “adsbygoogle”;
ins.setAttribute(‘data-ad-client’,’ca-pub-5637083728650188′);
ins.setAttribute(‘data-ad-slot’,’9804936550′); //set adslot
ins.setAttribute(‘data-ad-format’,’fluid’); //set ad-format
ins.setAttribute(‘data-ad-layout’,’in-article’); //set ad-layout
ins.style.display = ‘block’;
ins.style.textAlign = ‘center’;
//– Getting to the parent element
var parent = document.getElementById(‘criteo_1257343’); //set slotid
//– Append the script and the ins to the DOM
parent.appendChild(ins);
parent.appendChild(script);
(adsbygoogle=window.adsbygoogle || []).push({});
}
Criteo.events.push(function() {
Criteo.Passback.RenderAd(‘criteo_1257343’, passback2);
});
</script>
</div>
<!– END CRITEO TAG –>
The theme comes with a child theme inside the ‘code’ folder of the extracted ‘newspaper-rtf’ zip file (download “All files and documentation on theme forest). Use that one to ensure there are no errors.
Hello,
We are using newspaper 8.8.1 with the cryptonews demo.
I have tried to create a child theme by copying the newspaper directory to newspaper_child and changing the description in style.css.
After activating the child theme, a couple of things are missing such as the social icons and the menu arrow icons.
Instead of an Icon I get characters such as \e81d.
Is there a way to fix this?
B.R.
Hi,
The next prev links in the theme are not working with WPML.
We have set up English as our default language and French is our other language.
If you go here (http://104.130.176.183/the-renaissance-of-childrens-live-action-programming/) and scroll down to the next prev link area you can see the following issues.
1) The next/prev titles are showing in French when in English. If you toggle the language to French in the top left they are reversed the other way.
2) The next link always wants to just link me to the post I am already on rather than taking me to the actual next post.
3) Even though the titles are showing in the wrong language the URLs are actually to the correct language.
On the WPML forms I found this link (https://wpml.org/forums/topic/get_next_post-get_previous_post-returns-posts-not-from-current-language/#post-472084) that says “we are filtering the previous_post_link() and the next_post_link() functions only, for now.” When I took a look at your code in “td_module_single_base.php” I saw that you are not using previous_post_link() and the next_post_link(), but instead get_next_post() and get_previous_post().
Can you please tell me why this is happening and how to solve it, as this theme says it is compatible with WPML.
Thanks,
Digital Chaos
Hi,
The default mobile menu icon is already on the left, in your case it is on the right because a code in the child theme it seems
– https://www.screencast.com/t/ATLklhwO1L
If you remove that code it should be as default.
Thanks
Hello,
This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
@A.Mason The default theme post templates can be edited in a child theme, meaning all the single and loop-single files corresponding to the post templates. So for post templates you can make modifications in the child theme.
Module files can also be modified in a child theme, the general module file from the booster folder (td_module.php) cannot be however. I believe that will be the only file you cannot modify in a child theme in order to implement the co-authors.
But you can modify it in the main theme, and make a backup of it. Next time the theme is updated, check the modified files list. If that file was not modified, replace it with your modified version.
Hello,
This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Hello!
Ah okay, thanks! Will it overwrite the Child Theme when I install the demo? I have some CSS code in there.
I notice when I use Post Template 1 and I want a quote centered next to the post picture the box is over the picture. How can I fix that?
For example:
Quote box center
https://screenshots.firefox.com/NuAC3z0pltshc9M2/aspi.lau-rammstein.de
Pull quote center
https://screenshots.firefox.com/U6cbxJ0tVTyaLwe4/aspi.lau-rammstein.de
Link to the post: http://aspi.lau-rammstein.de/rammstein-gibt-exklusive-konzerte-in-mexiko-ende-2018-anfang-2019/
Thanks!
Laura
Hello,
It seems the css for the button does no apply properly. It could be a plugin influencing the css. Please try to disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Hello,
This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Hello Lowcarbsmeal,
For more information about Child Theme support, please check the documentation from here
-> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks.
is there a way to change the Display name to say ‘My Profile’ Instead? and how do i add this to the child theme so i wont have to change it each update?
Hello,
This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Thank you!
Hello,
This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Also please only use wp super cache and these settings: https://forum.tagdiv.com/cache-plugin-install-and-configure/
And use this guide for proper memory allocation: https://forum.tagdiv.com/requirements-for-newspaper/
Thank you!
Ok, but my child theme is not empty. I need my child theme.
Do you know another another way to fix the problem? thank you