- 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,
Please note that not all modules that form blocks and grids, display excerpts. This could only be achieved through modifications to the modules you want, and probably some additional styling.
The modules can be found here in the theme
– https://www.screencast.com/t/zdlpSbXgrdb
Some modules display excerpts and some do not
– https://www.screencast.com/t/e5maxhPLopz
You can try and modify the modules you want, and add the excerpt code from the ones that have this feature.
These modules display only the category of the post, not tags. None of the modules can display tags, they were not designed to do this.
Thanks
If you have Static Homepage, you can try (but it’s quite unofficial) to add this short code to the Mobile page editor (below your usual Desktop Visual editor):
[td_block_big_grid_mob_1 installed_post_types="your-post-type-name-here"]
This short code supports other module shortcode parameters (like offset, sorting), but not “limit” (it will be always 3 posts). But you can tweak it in the themes/Newspaper/mobile/includes/shortcodes/td_block_big_grid_mob_1.php file
find
const POST_LIMIT = 3;
and change the number to what you like.
Hi,
The next/prev pagination can be customized the same way. For all the blocks at once you can use a code like this
– https://www.screencast.com/t/ZNFbvTBTHxuT
.td-next-prev-wrap a {
color: red;
border: 1px solid red;
}
Fore each block the same method provided above will have to be used, to style each block individually.
The WP Super Cache works properly with the theme
– https://forum.tagdiv.com/cache-plugin-install-and-configure/
I have not seen that error displayed in relation to this caching plugin. It is even recommended to be used with the theme. You could try other caching plugins if you want, but the Super cache should not produce errors like you mention.
Thanks
Hello,
1. Google keeps giving me this (only) render block error below. I activated Speedbooster and made sure it was not disabled by any other plugin. It didnt make any difference and keeps giving me this error.
https://www.dagonline.nl/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.9
How can i solve this?
2. Also, what is the best way to minify JS, CSS and HTML with the Newspaper theme?
3. http://www.webpagetest.org keeps saying i need to optimize the 2 files below. What is the best way to do this? I use Short Pixel to optimize my images.
FAILED – (15.6 KB, compressed = 0.7 KB – savings of 14.9 KB) – https://www.dagonline.nl/wp-content/themes/Newspaper/Newspaper/images/no-thumb/td_324x235.png
FAILED – (14.8 KB, compressed = 0.4 KB – savings of 14.4 KB) – https://www.dagonline.nl/wp-content/themes/Newspaper/Newspaper/images/no-thumb/td_100x70.png
Thanks!
3. This works, but now all the images on the website don’t load straight away, they take a couple of seconds. Is there a way to make the images load straight away like before?
4. Not all the post titles on the website. Only the post titles in Block 1.
Hello majorfuss,
2)Try to add the important tag in front of property, like below ->
.td_block_big_grid_3 .td-module-meta-info{
display:none;
}
3)I have tested on my site to turn off this setting -> https://www.screencast.com/t/0HTEXaBp and the zoom image for Big Grid are stopped. I guess that you are referring to this effect.
4)Also, if you want to change the hover color of your post title, you should try using the following code below ->
.td_module_wrap:hover .entry-title a{
color:red!important;
}
Thanks for your understanding!
Hi,
I could give you a code to change the font size for that element, but it would apply to all the block text with titles on the page
– https://www.screencast.com/t/7OIPZE9AteN
If you would only want to change the font-size for that particular element, you can set a custom class for it
– https://www.screencast.com/t/eTIVIhz586
Then use that to modify only that element
– https://www.screencast.com/t/cMaGo9td
This is the code used in both the examples
.td_block_text_with_title .block-title>span {
font-size: 25px;
}
.my_class .block-title>span {
font-size: 25px;
}
After creating the needed code, it must be entered in Theme panel->Custom CSS section.
Thanks
Thanks Simion. I see that the outcome of the ‘load more’ buttons is pretty messy, i will skip it. Instead i will choose for the ‘Next Prev Ajax’ option for pagination. How can i change the colors of the border and arrows of each block. Can you please tell me specificly what to do?
Btw, on mobile (Chrome) i get an quick flash error. It says:
“This site can’t be reached
The web page might be temporarily down or it may have moved permanently to a new web address”. Error content decoding failed.
I think its only on mobile and its only once. Once i visited the post of page its gone. I empty caches, but than it pops up again. I contacted my hosting, but they dont see any errors. How can i fix this?
Hi,
The browser inspector tool is a powerful tool that can be used to inspect the page and see the classes used. This is a useful guide for this purpose
– https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
1. That gradient on the slide could changed with a code like this
– https://www.screencast.com/t/Bp9jkwGdR
Use the colors you want in the code, then enter it in Theme panel->Custom CSS section
.td_block_slide .td-image-gradient:before {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(25, 85, 199, 0.8) 100%);
}
2. The subtitle will be displayed on the post page
– https://www.screencast.com/t/1hg237kqz
– https://www.screencast.com/t/K2sRiSz2tI6
Block modules do not display subtitles, some display excerpts for the post
– https://forum.tagdiv.com/excerpts-introduction/
The slide in particular does not display an excerpt. That could only be achieved through code modifications, here are some similar topic
– https://forum.tagdiv.com/topic/subtitle-in-slider/
– https://forum.tagdiv.com/topic/how-to-show-excerpt-in-slider-module/
Thanks
Hi,
That can be done by setting a unique class for each block, then using it in the code. Like in this example
– https://www.screencast.com/t/n0rDVBXw
– https://www.screencast.com/t/nLbwQRdmaQmr
– https://www.screencast.com/t/MEJUVT1pH5
Each block can be customized in particular, by setting a unique class to it.
Thanks
Hi,
You could use a code like this, and set a bigger margin between the images
– https://www.screencast.com/t/TSSkvw3v9
Use the value you want in the code, then enter it in Theme panel->Advanced CSS in the mobile section so it will only apply on mobile
– https://www.screencast.com/t/H2h5PZ0n07P4
.td_block_image_box .td-custom-image a {
margin-bottom: 10px;
}
Thanks
Hello Jevgenij,
Unfortunately, please notice that the theme will not display the featured images in a page like this happen on the post page. The featured image for page will appear only in the Blocks which were filtered by a page, like this -> https://www.screencast.com/t/l36k2BVUQ
Hope this helps!
Thanks for your understanding!
Im looking at the architecture demo. I also see it my testing environment.
You will see many of the blocks have a gap between the title and author. {block 3 and 5 as an example} Its a large gap. An example is visible in sidebars which are visible on all posts. I see while inspecting it, there is no excerpt there, but the space is there via css. If I add a review to the posts, the author disappears and the gap is left there for the author.
I wonder if this is expected? If its a matter of settings, any suggestions that may point me toward the correct settings would be appreciated. I adjusted via css, but thought Id point it out in case its settings or a css booboo.
Edit block/module and remove the “Custom title for this block:” tittle there.
Hello mskssk1, how you doing?
Use this code:
.td_block_related_posts .td-related-right {
display:none;
}
Hi,
Can you please go to https://infomeddnews.com
I am trying to change the SIZE OF THE FONT on the page where it reads: Headline News
Can you please provide a CSS code that I should use and advise where I should place that code? Thanks so much for all your help.
Sorry, one more question along with the two questions above.
4. On Block 1, I added a black Block Header 4 template for the Custom Title. But now when I hover over the article titles in the block, they are also black instead of my theme accent colour. How can I change the article titles’ hover colour from black to my theme accent colour? https://snag.gy/NMwOUt.jpg
I have purchased. What I desire to know is whether I can change the categories to my desired topic? Can I use my curator to post to those categories? How are the Categories currently fed? Whether I can insert text block to post specific topics to my target audience? Whether I can create a blog or other page(s) with my own determined topic? Finally, where may I find video or documentation on implementation? Thanks
Globalpro
sales@globalpro1.com
hi, Thank you very much for your answer
sorry to bothering you again…
My host provider (1and1) doesnt answer to me. They told me that they dont put hands in Worpdress configuration.
I had before Newspaper 7 and all is running without problem.
Actually in Newspaper8 I cannot access to
Block settings – Thumbs on Module/Blocks
and also various categories in:
Categories – Nameofcategories
I dont know how to solve 🙁
I don’t think that a generic article is going to help me fix this error.
Please read the related tickets that I linked to in my original request (above):
“Chris S #192272
Sep 7, 2017 at 1:44 am
This happens when you update theme or main WordPress …
nothing to fix; normally you will have one of these, unless hacker slamming that directory. So, with one you just mark as ‘fixed’ and move on.
That should so be in the WP documentation — which they are finally going to redo (won’t be called ‘codex’ any more for 2018!). ?”
“Chris S #192418
Sep 7, 2017 at 7:09 pm
I think we did something on one site for that,
we made an index.php file that had a refresh header …
although I think we then instead did an htaccess file for the them folder,
and did 301 redirect for index.php to home page of site. Something like that.
Downside is you need to replace those each time theme is updated.
Or, just grimace when you do theme update and month later see that single entry in your search console. I usually just go “(sigh) … stupid Google…”
I mean, how stupid do you have to be in the data mining business to not auto-ignore /wp-content/themes/ for indexing ANYTHING? Duh.”
I have found a possible solution on other support forums:
Hi!
Yes, having read the Yoast article https://yoast.com/dont-block-your-css-and-js-files/ i’d suggest not blocking all theme resources, however i think index.php should not be read directly by crawlers (or visitors) because it will always result on a PHP error, you could try one of these two workarounds:
Redirect theme index.php to root (this will apply to all visitors), .htaccess code (you could extend this to child theme directories or plugins):
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /wp-content/themes/enfold/index\.php\ HTTP/
RewriteRule ^wp-content/themes/enfold/index\.php$ http://DOMAIN.com/ [R=301,L]
Or simply disallow only index.php in the theme folder, robots.txt code:
User-agent: *
Disallow: /wp-content/themes/enfold/index.php
Please advise.
-
This reply was modified 8 years by
miket.
Hello,
I’m using SLIDE BLOCK in my homepage in order to show the 3 most important news. I need to modify two elements of Slide Block:
1) I would like to change the colors for the gradient that appears over the image for every single post. In this moment I see a gradient gray dark. I think the CSS classi is .td_block_slide .td-image-gradient but I don’t know how to write all the custom code.
How can I do that via CSS?
2) I would like to show the subtitle below the title for every News. In this moment Slide Block shows just the title. Is it possible?
Thanks,
Michele
Thanks again Simion. Problem is i have different blocks with different colors tabs. When i add the CSS code for the color and border, all the ‘Load more’ texts in all blocks become the same color (obviously).
So my first block is blue, so the ‘Load more’ button needs to be blue too. How can i specify specific colors for each block? If you dont know what i mean, please take a look on https://www.dagonline.nl. Thank you.
-
This reply was modified 8 years by
Eric V.
Hi,
You can change the block header style. This block header style provides a button that directs to the category page used in the filtering on the block
– https://www.screencast.com/t/eUVG7CeABKjA
– https://www.screencast.com/t/HGtywXB2wPe
These are the currently available block header styles, some display the ajax filter differently as it can be seen
– https://demo.tagdiv.com/newspaper/block-header-1/
Thanks
Hi,
2)Try the code below and place it in Theme panel -> Custom CSS area.
The code is ->
.td_block_big_grid_3 .td-module-meta-info{
display:none;
}
3)Clear all the caches and check the results.
4)Use the code below ->
.td_video_playlist_title .td_video_title_text{
font-family:Arial!important;
}
Notice that the font family used in this custom CSS should have to be loaded in your theme from Theme panel because if it will not be, the font will do not be applied.
Thanks for the message!
Seriously?
Im still waiting for a concrete solution and not just telling everybody use a new registration plugin. It is very hard to create a nice looking registration form, which is integrated that seamlessly like the default one.
You’re theme is one of the most selling WordPress themes out there and you can not provide your customers a great solution for basics like the registration process?
-.-