- ApiPractical example – How to add a new Block and Module
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_thumb::add
- ApiAPI – Thumbnail – Introduction
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_top_posts_style::add
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- ApiUsing the Theme API in plugins
- ApiThe Theme API
Hi Tibbar,
If you just wish to change h4 with h2 then you need to go in file Newspaper > includes > block_templates and open in notepad ++ look at 102 line there start custom title ( https://www.screencast.com/t/1qaxq3mo ), change there h4 with h2; this will change just the element, the font-size will be the same
See results: https://www.screencast.com/t/vGKN54kRZc
Thank you for your understanding
-
This reply was modified 7 years by
Calin.
Hi,
@Lorentz Yeung So you changed the excerpt type to letters, then customized each module to your liking in terms of length, and it’s not working
– https://www.screencast.com/t/gm7aXEhFtR
Please provide an example of this. A screenshot with the settings in the theme panel with the module where you customized the excerpts, and a link to the page where the module/block is displayed.
Or send us an email at contact@tagdiv.com and provide admin login. Mention the page where this is happening so we can test, and other relevant details if there are more.
Include a link to this topic in the email.
Thanks
Hello Chan,
Make sure that you have correctly set up your sidebar according to our documentation from here -> https://forum.tagdiv.com/sidebars-tutorial/
If you want to reduce the author name, that’s the option which removes it from Blocks/Modules, like this -> https://www.screencast.com/t/Gt0cqjmzxdC
Thanks for your understanding!
Theme does not control sending email. Just as heads up to those new to WP.
Email sent via WP by default goes via sendmail, or out via authenticated email via an actual account on server via correct port. However, this may require the plugin to ‘ping’ the account first before send, which may not work.
Another issue, is that if the email test from the plugin *does work* and you’re sending an email form from your website to @gmail, it might be going to the spam folder at the gmail account so never seen.
ABOUT WP Mail SMTP:
We went through this recently after server update and WP updates.
Suddenly, the latest version of ‘WP Mail SMTP’ would no longer work. All email tests would fail. (One presumes you are testing the email send option from plugin?) — we had to go back to 1.25 vs 1.3x — and that works. So, you may need to try different SMTP plugins to see which one *actually* works with your server.
Not sure that helps — but the SMTP plugin we’d been using since June 2016 stopped working Summer 2018, and we had to roll back to the prior version as “new version” simply did not work with WP forms, or with WooCommerce.
Upshot – if v 1.3 does not work, try to find 1.25 which does work.
Stupid I know, but we would have issue where one email test would work, then actual emails from form would not. Almost like our own server was blocking the plugin, so something changed from 1.25 to 1.3x.
Seriously, we’re running latest CentOS, Apache, https, http/2 and PHP 7.2x, no go with 1.3x but 1.25 works on two sep installs.
Try older version from github:
https://github.com/awesomemotive/WP-Mail-SMTP
https://github.com/awesomemotive/WP-Mail-SMTP/releases/tag/1.2.5
Try it 😉
Hi Simion, there must have been other custom css code interfering because as soon as I deleted the rest of the code leaving only the .td-header lines, it worked perfectly! I’ll see if I can work out what is blocking your code.
I know I’m stretching the friendship but one more related question. There is a gap between the top of the page and the top menu. What could I do on WomensGolf.com that would eliminate that so that the .td-header is right at the top? What I am trying to duplicate is the position of the top menu on https://www.pgatour.com/
Thank you again – very much appreciated.
Richard
-
This reply was modified 7 years by
Richard.
Hi,
I wrote custom code within the custom javascript section on my Newspaper 9 themed-website to create a script that executes a function and when I made the update to 9, that script was no longer executed. Is custom code being read differently in this theme update? do you have any advice on how to make this script run?
This is currently what I have:
if (window.location.pathname === “/”) {
var div = document.createElement(“div”);
div.setAttribute(“id”, “tpd-native-ad-d”);
var s = document.createElement(‘script’);
s.setAttribute(‘type’, ‘text/javascript’);
s.innerText = “googletag.cmd.push( function() {googletag.display( ‘tpd-native-ad-d’);} );”
div.appendChild(s);
var block = document.querySelectorAll(‘div[data-td-block-uid^=”td_uid_7″]’);
if (block && block.length > 0) {
var elem = block[0].getElementsByClassName(‘td_module_6’);
}
if (elem && elem.length > 1) {
elem[1].appendChild(div);
console.log(‘adding style’);
}
Thanks!
No, that’s not it. I know how to edit the sidebars and have made those changes. But when the default widgetized sidebar is used on a page, it automatically adds a three-column block to the page, with a list in the other 2 columns. I need to know where that block is so that I can change what it chooses to load.
Hi – Am just looking for some quick advice as I have stumbled over this for 2 hours now and am sure there is a quick fix.
I am trying to change the block settings in the footer so I can change the text header to be bilingual. Eg change ‘POPULAR POSTS’ and ‘POPULAR CATEGORY’ so that they each have their equivalent in target language.
Does anyone know how this can de done?
Am equally having trouble doing this in the main body section so that the block setting reading ‘LATEST ARTICLES’ would also have an amended header to reflect the translation of ‘latest articles’ into the target language.
Many thanks for your help!
HI, i would like know how i can translate footer via wpml plugins , i think is strings translation “ABOUT US , follow us, POPULAR CATEGORY, POPULAR POSTS, EDITOR PICKS more”
It’s the same for me, if the retina thumbnails are enabled they will be displayed in the flex block modules.
I will add this on our list and it will be looked over as soon as possible. The flex blocks will receive more options over future updates, maybe even the capability to choose from all the thumbnails the theme creates.
Sorry for this inconvenience, a solution will be found in these matters.
Hi. How does one edit the block that fills the 2/3 column of the default sidebar? The default version seems locked on latest posts and I would like to change that.
I changed the design of the Blockquote. But it won’t display on the mobile theme.
.td_block_related_posts .td-related-right {
display:none;
}
.td-main-menu-logo img {
margin-top: 5px;
}
.-hd-los-game-slider .-hd-los-game-slider-game.-hd-label-LIVE {
background-color: #2e7d32;
}
.text-bellow-footer{
width:100%;
height:90%;
background:#222222;
color:#666666;
font-size: 70%;
}
.td_block_related_posts .td-related-right {
display:none;
}
blockquote {
font-size: 20px;
line-height: 30px;
text-align: left;
margin: 0;
text-transform: inherit;
}
blockquote:before {
content: "\f205";
font-family: "dashicons";
font-style: normal;
position: absolute;
left: -1.25em;
font-size: 2em;
top: -0.5em;
color: #2e7d32;
display: block;
}
blockquote p {
font-size: 20px !important;
line-height: 30px !important;
color: #4d4d4d !important;
text-align: left !important;
text-transform: inherit !important;
}
@media all and (max-width: 992px) {
blockquote:before {
left: -1em;
}
}
@media all and (max-width: 640px) {
blockquote:before {
top: -30px;
left: -25px;
}
}
I got tired of trying to make any of the Demos work with Version 9. I then tried Version 8.8 and still no joy. I am running 8.8.2 in production and it is stable so I didn’t want to touch anything.
I was able to get Visual Composer to work and build up a site from scratch. But any time I tried to load a demo it would not work.
I punted away from Newspaper and attempted to use another Theme, but I found that the themes I was looking at were not as robust.
So…I am stuck building up from scratch since that is the only way Visual Composer and Tag Composer will work and render in development and then render the Page and display it.
There is a particular look I am trying to achieve. I am building a Page. I am adjusting the margins to get things where I want. The one issue I am unable to easily resolve through the Theme Management Dashboard is setting the entire background color of a Page.
I am able to set an image for the overall background of the Site. That is what I want. I create a Homepage and adjust the margins to move the latest articles and Blog Postings down that I set up with Blocks. I need to be able to set the Background color (opacity) to the whole page (which contains the Blocks to render the Blog Posts, which is separate from setting up the Background Image for the Site, there is the Header and the Site Background Image) so that the image is visible.
In short I am creating a Homepage and pushing it down some distance below the Header and Top Menu to get a look I want. The Image is a Book Cover and I want it unobstructed.
Please advise how I can set the Page Background container color/opacity without having to hack the Style Sheets.
Thanks
Hi,
I don’t see the error…only no results…..
I have php error 24-Sep-2018 14:49:40 UTC] Eroare bază de date WordPress Not unique table/alias: ‘wpxp_postmeta’ pentru interogarea SELECT SQL_CALC_FOUND_ROWS wpxp_posts.ID FROM wpxp_posts INNER JOIN wpxp_postmeta ON (wpxp_posts.ID = wpxp_postmeta.post_id) INNER JOIN wpxp_postmeta ON (wpxp_posts.ID = wpxp_postmeta.post_id) WHERE 1=1 AND wpxp_posts.post_type = ‘post’ AND ((wpxp_posts.post_status = ‘publish’)) GROUP BY wpxp_posts.ID ORDER BY wpxp_posts.post_date DESC LIMIT 0, 4 efectuată de require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/Newspaper/search.php’), get_sidebar, locate_template, load_template, require_once(‘/themes/Newspaper/sidebar.php’), require_once(‘/themes/Newspaper/includes/wp_booster/sidebar.php’), td_util::show_sidebar, dynamic_sidebar, WP_Widget->display_callback, td_block_widget->widget, td_block_9->render, td_block->render, td_data_source::get_wp_query, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
Hi nguyenxuan,
In this example https://1.bp.blogspot.com/-zf4UyyTHhEs/W6ia9P-K2UI/AAAAAAAAHNc/54fRbolivd0mTwnhF14JTYFv3dWin-t9gCLcBGAs/s1600/Screenshot_1.png
is an 1068×0 thumb because is use Flex Block 1
https://www.screencast.com/t/SZCIxAoMjbqf
In Block Settings on the right you have info on wich modules/blocks are use that thumbs
https://www.screencast.com/t/mn6fhQiPS
Thank you for your understending.
From what I can see the 696px size is used at the moment for the first block
– https://www.screencast.com/t/LNT8dO7ONLkE
Also the smaller one here, for the second – https://www.screencast.com/t/jqSAvzhhu
What you did seems to have worked.
Hi,
This method should work as long as post views are enabled
– https://www.screencast.com/t/6eSMwlfrQSv
And the necessary setting is enabled in the theme panel
– https://forum.tagdiv.com/7-days-post-sorting/
As soon as the theme panel option is enabled and also the view counts, posts with the most views will begin to appear in the respective block sorted accordingly.
A thing to note is that the 7 days method will not work while using caching. This is mentioned in the guide.
Thanks
Hi Simion,
Thanks for your reply. I think we are getting somewhere.
The image width you mentioned of 1392px is double 696px, so presumably it’s pulling the retina version of the 696px thumbnails.
We use the Imagify image optimisation plugin, as owned/recommended by WP Rocket. It optimises for all thumbnail sizes used by the theme. I disabled the plugin then built a new page and created eight new posts to test, so it wouldn’t pull any old images. Link here, with one flex block to pull 696px images and one set for 324x400px images:
https://www.thecarexpert.co.uk/image-compression-testing/
Made no difference, was still pulling the 1392px and 648px (retina) images. Disabled all my other plugins apart from tagDiv ones and core plugins like bbPress, still no difference.
Went to the theme panel and deselected all the retina versions of the thumbnails, and presto! It now pulls the 696px and 324px images instead of the 1392px and 648px versions.
So it appears that the tagDiv theme panel settings are causing the flex block to pull the retina images rather than the originals, rather than a plugin.
Hi,
I use a widget Block 21 and when I choose Sort order > Popular last 7 days (theme counter), I get “no posts”.
I double checked that the option “USE 7 DAYS POST SORTING” is enabled and it as.
So I don’t understand what’s wrong. I waited for some days (not 7 but 2 or 3 days) and still there is “no posts”.
My website, http://www.mondeoz.com is online since more than 6 months…
Thanks for your help
Hello kaylee174,
1)Unfortunately, the theme does not have any such an option that allows you to do this, sorry! As you can make is to create your own custom category template and exclude from the block those posts which you do not want to be displayed on your category page, using the Block Settings.
2)Unfortunately, the theme does not have any such an option for sticky posts, sorry! Another alternative for you would be to create your own category template and from the block you should display only the post you want to be displayed at that page, using the post ID. Notice that using the Cloud Template Library you can make a lot of things with TD Composer plugin because this is more powerful and allows you to make a lot of things.
3)I do not exactly understand what you mean, but please notice that you can create your own CSS code if you need to hide some posts from a certain page. Use the Inspector browser from here -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
4)The comments for category page is not available, sorry! The comments are available only for posts because this is the main WordPress functionality for comments. You should comment a post and not a category, sorry!
Thanks for your understanding!
Hi
You can get more information in this documentation of thumbs: https://forum.tagdiv.com/theme-thumbs/
Please active only thumbs you need to use in Newspaper > Theme panel > Block Settings section Thumbs on Modules/Blocks ( https://www.screencast.com/t/JHQNe5ZSCy ), this will increase your website speed .
Thank you for your understanding.
Hi,
I checked a few of the flex modules in your website, seems that indeed the full images or some unusual sizes are used instead of selected thumbnails. For example this module
– https://www.screencast.com/t/lyt91bTX6z2
It uses a thumbnail size it seems of 1395x741px – https://www.thecarexpert.co.uk/wp-content/uploads/2014/07/car-finance-voluntary-termination-pcp-hp-agreement-e1476792854766-1392×741.jpg
That is not a theme created thumbnail and also not the full size of the image, quite unusual. The same image seems to have a 696px size created which should be used if selected
– https://www.thecarexpert.co.uk/wp-content/uploads/2014/07/car-finance-voluntary-termination-pcp-hp-agreement-e1476792854766-696×370.jpg
I made few tests, selecting different sizes for the image in the block
– https://www.screencast.com/t/ixvHrwCHL
– https://www.screencast.com/t/GiFKbq3bu
They are loading correctly from what I can see. The sizes you select should be used. The smallest at the moment is the 324x400px size.
Do you maybe use any image optimization plugins or image delivery services? Worth testing without them if you do. Or investigate all plugins at once. Deactivate them all as a quick test (except theme plugins), check if this has any effect.
Also create a new test page and use a flex block, select the image size, see if the same thing happens there. Let me know what you find.
Thanks
Hi Ahmef,
If you us TagDiv Composer and create the page as you like, also we have cloud templates there you can get a lot of templates for your desire or you can create one after your desire.
Please read our documentation from here to better understand how to use newspaper :
https://forum.tagdiv.com/newspaper-theme-documentation/
If you wish to hep a page on full width using TD Composer you can use blocks like Big Grid Full ore you can stretch row and content and set css width 100%
See results: https://www.screencast.com/t/eXDYWIdE1
Thank you for your understanding.
Hello TheLuckyGuy,
I do not exactly understand what you want to achieve? Notice that the blockquote is applied on mobile version as you can see here -> https://www.screencast.com/t/5Abz4O21aovP
Thanks for your understanding!
Hi,
In order to do that you can use a custom css, cloud templates, or you can set up from Theme panel > Theme fonts > Module and Block General section BLOCKS/WIDGETS TITLE, but the last one is a global one an will affect more blocks and modules.
For custom css go in Newspaper > Theme panel> Custom code >Custom css and past there this css:
.td-related-title {
font-size: 24px ;
}
Like so: https://www.screencast.com/t/aCbBgLmKTt8
See results: https://www.screencast.com/t/7pGJvQ3THC
Thank you for your understanding.