- NewspapertagDiv AMP Plugin Tutorial
- ApiPractical example – How to add a new Block and Module
- NewspaperTrack Subscription Sources with Locker URL in Opt-In Builder
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperCredit System
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to use the Posts List shortcode
- NewspaperUser review system
- NewspaperCustom Fields Support
- NewspaperHow to generate Facebook App ID
- NewspaperHow to insert a block inside the content of a post
- NewspaperModal Popup
- NewspaperPayPal Setup
- NewspaperLink Tracker
- NewspaperLockers
- NewspaperGeneral Options that May Interfere with the Newspaper Theme
- NewspaperAdd Cryptocurrency Price Ticker Widget
- NewspaperPosts Loop Element
- NewspaperThe Newspaper Mobile Theme: Introduction
Hello,
I’m using a custom post type (like your example td_books…) and I would have the possibility to add a label:
as in WP backend clicking on “Posts” the 2nd level menu displays “All posts”, in my CPT named “Giocatori” on the 2nd level menu I have the same “Giocatori”, but I need to have “Tutti i giocatori”.
How can I do?
Thanks
Here is the code I’m using inside functions.php:
// to register Custom Post Types and taxonomies, the use of the init hook is required!
add_action(‘init’, ‘custom_post_type_init’);
function custom_post_type_init() {
/**
* add the td_book custom post type
* https://codex.wordpress.org/Function_Reference/register_post_type
*/
$args = array(
‘public’ => true,
‘label’ => ‘Giocatori’,
‘supports’ => array( // here we specify what the taxonomy supports
‘title’,
‘editor’,
‘thumbnail’,
‘excerpt’,
‘comments’
),
//’taxonomies’ => array(‘category’) // if you also want to add an existing taxonomy like categories or tags, you can add them here
);
register_post_type( ‘giocatori’, $args );
/**
* Add new taxonomy, make it hierarchical (like categories) and associate it to the td_books Custom Post Type
* https://codex.wordpress.org/Function_Reference/register_taxonomy
*/
$labels = array(
‘name’ => _x( ‘Ruolo’, ‘taxonomy general name’ ),
‘singular_name’ => _x( ‘Ruolo’, ‘taxonomy singular name’ ),
‘search_items’ => __( ‘Cerca ruoli’ ),
‘all_items’ => __( ‘Tutti i ruoli’ ),
‘parent_item’ => __( ‘Ruolo genitore’ ),
‘parent_item_colon’ => __( ‘Ruolo genitore:’ ),
‘edit_item’ => __( ‘Modifica ruolo’ ),
‘update_item’ => __( ‘Aggiorna ruolo’ ),
‘add_new_item’ => __( ‘Aggiungi nuovo ruolo’ ),
‘new_item_name’ => __( ‘Nome nuovo ruolo’ ),
‘menu_name’ => __( ‘Ruolo’ ),
);
$args = array(
‘hierarchical’ => true,
‘labels’ => $labels,
‘show_ui’ => true,
‘show_admin_column’ => true,
‘query_var’ => true,
‘rewrite’ => array( ‘slug’ => ‘ruolo’ ),
);
register_taxonomy( ‘ruolo’, array(‘giocatori’), $args );
/**
* Add new taxonomy, NOT hierarchical (like tags) and associate it to the td_books Custom Post Type
* https://codex.wordpress.org/Function_Reference/register_taxonomy
*/
$labels = array(
‘name’ => _x( ‘Tag’, ‘taxonomy general name’ ),
‘singular_name’ => _x( ‘Tag’, ‘taxonomy singular name’ ),
‘search_items’ => __( ‘Cerca tag’ ),
‘popular_items’ => __( ‘Tag popolari’ ),
‘all_items’ => __( ‘Tutti i tag’ ),
‘parent_item’ => null,
‘parent_item_colon’ => null,
‘edit_item’ => __( ‘Modifica tag’ ),
‘update_item’ => __( ‘Aggiorna tag’ ),
‘add_new_item’ => __( ‘Aggiungi nuovo tag’ ),
‘new_item_name’ => __( ‘Nome nuovo tag’ ),
‘separate_items_with_commas’ => __( ‘Separa i tag con delle virgole’ ),
‘add_or_remove_items’ => __( ‘Aggiungi o rimuovi tag’ ),
‘choose_from_most_used’ => __( ‘Scegli un tag tra quelli più utilizzati’ ),
‘not_found’ => __( ‘Nessun tag trovato.’ ),
‘menu_name’ => __( ‘Tag’ ),
);
$args = array(
‘hierarchical’ => false,
‘labels’ => $labels,
‘show_ui’ => true,
‘show_admin_column’ => true,
‘update_count_callback’ => ‘_update_post_term_count’,
‘query_var’ => true,
‘rewrite’ => array( ‘slug’ => ‘tag’ ),
);
register_taxonomy( ‘tag’, ‘giocatori’, $args );
}
no, I meant another. in Russia, popular other social networks to share, for example, Vkontakte or classmates.
Look, I need to insert this script
<script src=”//yastatic.net/es5-shims/0.0.2/es5-shims.min.js”></script>
<script src=”//yastatic.net/share2/share.js”></script>
<div class=”ya-share2″ data-services=”collections,vkontakte,facebook,odnoklassniki,moimir”></div>
Before update 8.5 I put this script as you advised me in the screenshot https://www.screencast.com/t/hZqp5dTnl
worked as a script like so:
<div class=”td-default-sharing”><script src=”//yastatic.net/es5-shims/0.0.2/es5-shims.min.js”></script>
<script src=”//yastatic.net/share2/share.js” async=”async”></script>
<div class=”ya-share2″ data-services=”vkontakte,odnoklassniki,moimir,blogger,lj,telegram” data-counter=””></div>
</div>
That is, your button sharing was with mine. Now, those recommendations that were in your screenshot do not work after the upgrade.
That is, I insert the code <div class=”td-default-sharing”><script src=”//yastatic.net/es5-shims/0.0.2/es5-shims.min.js”></script>
<script src=”//yastatic.net/share2/share.js” async=”async”></script>
<div class=”ya-share2″ data-services=”vkontakte,odnoklassniki,moimir,blogger,lj,telegram” data-counter=””></div>
</div>
but my share buttons do not appear along with your
Hello,
Sorry but the theme does not offer specific fonts for the buddypress templates. THey can be changed wit css though. Please provide an example of the fonts you want changed and I will provide the css code necessary.
Thank you!
I have an issue with Single Images in Pages using TagDiv Composer.
If i add a picture that is, let´s say, 1000x200px it looks ok in fullscreen on a computer. However if I reduce the brower window (or look at the page through a mobile device) the image changes its proportions. I understand that this in some cases is a great feature. However it´s not really how I want pictures to behave.
What I want to do is to have the picture keep its ratio (say for example 16:9) and only be resized, NOT rescaled and cropped within a border. I have played around with the options for the image (keep height etc.) but can´t get it to work. Setting a specifiec height also doesn´t help since 200px looks very different on a desktop vs. a mobile screen.
I want the single image to behave like images does when i insert them in a post through the standard wordpress-library function. I must just be missing some setting right? 🙂
Hello,
Are you using a plugin to embed the Instagram content? Please provide an example so we can inspect the site.
Thank you!
Hello kalamatain,
Sorry but the plugin is not tested with our theme. We did receive word from our users that the standard AMP plugin made by Automattic works properly and there is even a guide on it here: https://ampforwp.com/tutorials/article/amp-in-action-with-newspaper-theme/
We have not tried it ourselves, but it is worth a shot.
Thanks.
Hi,
I believe you are referring to the pagination present on the bottom of the page, in the latest articles section. You would have to disable this section in order to remove the pagination. This can be done by selecting a different page template, in the page settings
– https://www.screencast.com/t/T3Ubtm4NrO
Please note that also block pagination can have an impact in this matter. You can try to reduce the number of blocks that use pagination for example
– https://www.screencast.com/t/p9s2r4zpo6z
Thanks
Hi,
That header template has a predefined height (130px), it could be reduced to the actual logo height with a code like this for example
– https://www.screencast.com/t/ovbrUabt
This is the code used, if you should consider it a solution please enter it in Theme panel->Custom CSS section
.td-header-style-10 .td-logo-wrap-full {
min-height: 90px;
line-height: 90px;
}
.td-header-style-10 .td-logo-wrap-full .td-logo {
line-height: 90px;
}
Thanks
By changing our homepage http://www.sportguide.ch with Newspaper Theme some pages come up with dissappeared Links. On several ski pages we have several Links to another pages, but now on the frontend they dont work and in the backend if you click on the images it show theirs no link anymore as it was before. For example: http://www.sportguide.ch/k2-skimodelle-2017-2018/, Now I have to install all Links again. Do you have any suggestions and solutions?
Hello idazamp,
Make sure that you have installed the latest theme version via FTP way because this is the surest method in this case. I suggest you make a new fresh install via FTP with the latest version of the theme, according to our documentation here -> https://forum.tagdiv.com/install-via-ftp/
Thanks for your understanding!
Hi,
The mobile theme is intended to provide a lighter version of the website on mobile. This plugin is optional, you can choose not to use it. It can either be active or inactive.
Please note that in the latest update an option to hide elements or rows has been added. So for example, if you have a page that you consider to be heavy for mobile, you could hide the rows/ elements you want on mobile
– https://www.screencast.com/t/QQnDWox7
– https://www.screencast.com/t/7T3gnWCPzFP
This could be a possible solution in this case.
Thanks
Hi
How can I change the excerpt’s font and style? I mean not in the blocks, I want it for the single posts? For example I make them Bold and a bit bigger size.
How do I remove the automatic display of how many comments an individual author has received.
For example on the Home/authors/posts by “.” rendering where the theme displays two boxes showing #number of posts; and #number of comments.
I just want to get rid of the author comment number box where it displays in various places.
Many thanks.
Hi,
The modules will display thumbnails from the featured image or video set for the post. Each module has a corresponding thumbnails that it uses. For example module 1
– https://www.screencast.com/t/PkojnwE2h
The modules will not display the actual video when a featured video is used, if you want to try and make this modification that is where you can begin.
Thanks
How to install under the article Relap.io.
Edit single.php does not work.
Code sample: <script id=”SX5-zmCh_wX_RkZG”>if (window.relap) window.relap.ar(‘SX5-zmCh_wX_RkZG’);</script>
Hello contemacs,
1)Please check our post templates because we have more options in this case and could be used from Theme panel. For more information about this, please check the following documentation here -> https://forum.tagdiv.com/newsmag-post-templates/
2)You simply should switch the theme to another page builder. (Default, for example)
Thanks for the message!
Hello kesp,
Unfortunately, I do not exactly understand what you mean. Please keep in mind that in your example does not exist any subtitle element, sorry! Above, I have pointed you where exactly is a subtitle, as you can see in that image here -> https://www.screencast.com/t/erclX0kqOSdp Please provide a useful screenshot to show me what subtitle you’re talking more accurate.
Thanks for your understanding!
Good evening,
I’m sure it’s just my amateurism causing this, but I’m having a massive problem in my website. What’s happening is that pages like https://raquetc.com/livescores & https://raquetc.com/onde-jogar-clubes aren’t showing in mobile what they’re showing (and well) in desktop, ie, the content. In mobile I only see the titles…
Can someone please help me?
Thank you so much!
Hi,
My web site is too slow because too many requests to admin-ajax.php
Is it possible to embed admin-ajax.php to theme ?
for example:
POST /wp-admin/admin-ajax.php?td_theme_name=Newsmag&v=4.1
Thank You
How can I change the format of the title of the content block?
There are some templates that go with the theme, but I would like to use a created by myself.
See example:
Hi,
my theme child doesnt work in most part of it after upgrading to Newspaper v8.5 (from v8.2).
Some examples:
– plugin HTML5 responsive FAQs stop to work displayn that aren’t faqs to show (but it is not)
– Newspaper theme panel is gray colored and new multipurpose plugin http://www.pagalparrot.com/wp-content/uploads/2017/12/Capture.jpg
Temporary I solved disabling child theme …
Could you solve ?
Regards
Dr. Cocci
It’s seem like a conflict with td multi purpose. Personnaly I have desactivated this plugin and WPBakery and all work fine. Because for example, if I use td multi, my theme mobile doesn’t work.
Yes, you need to remove all inline HTML to pass AMP validation.
Best way is to search/replace the dbase using MySQL/phpMyAdmin or similar (see various tutorials online on how to do this). Not part of theme. The center text element in posts is part of WordPress editor, and technically should always have been a style ‘class.’
Basically you need to change anything that you want centered to a
class="text-center"
Same with any inline styles you may have used for tables or comparable.
Hope that helped!
First H2 in every post like that http://prntscr.com/hhwn3a
this is making a problem for me when I try to validate AMP for posts https://search.google.com/test/amp?utm_source=gws&utm_medium=onebox&utm_campaign=suit&id=Ou9hng3FEGsKgFMMytUGhw
The post url : https://www.decorationy.com/interior-design/outdoor/best-stone-patio-ideas/
Hello, if you a have a suggestion or instructions about AMP setup for Newspaper theme that would be great, e.g. https://el.wordpress.org/plugins/amp/ or https://el.wordpress.org/plugins/accelerated-mobile-pages/
We are investigating a solution to help users with mobile devices get a better experience for our site.