- TutorialsDefault Block Settings Guide
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
Hi
You can try to modify html structure of block title element and to achieve that you need to edit the function which generate it: http://screencast.com/t/t5ax8sKyX
You can try something like this, it may help:
$buffy .= '
';
If that does not work try using pseudo element before: http://www.w3schools.com/css/css_pseudo_elements.asp – http://www.w3schools.com/css/tryit.asp?filename=trycss_before
Hope this helps.
Thanks!
Hi
Current therm’s implementation for blocks does not allow the usage of stinky posts, sorry. The query for all blocks are made in td_data_source.php file: http://screencast.com/t/UAUiboVRm1W so you can try to make some changes there but this is a complex task which requires lots of customization in order to be achieved.
We can’t offer customization services at the moment so if you really need this and you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.
Thanks for your understanding!
HI
You can try this css in theme panel > custom code > custom css:
.page-id-123 .td_block_2 .td-excerpt{
display: none!important;
}
Just add the page id in css class and it should work fine: http://screencast.com/t/tEB8AEJo
Let me know how it goes.
Thanks!
Hello,
i have found this code which could do what i am looking for. if you can help me to replace the class names with your class names.
#header-menu ul.menu li {
position: static;
}
.menu-header-container {
position: relative;
}
#header-menu ul.menu ul {
width: 100%;
background: white;
top: 3.26em;
}
#header-menu ul.menu .current-menu-item ul {
display: block;
}
Regards
HI
Try this css in theme panel > custom code > custom css: http://screencast.com/t/jndZLrh1GgUn
.td-footer-template-14 .block-title{
display: none;
}
IF this is not what you mean please provide your site url so I can have a closer look and get back to you with a more accurate answer.
Thanks!
Hi,
Coding is no problem. I just need to know which files should I edit to add custom fields.
For example if i want to add fields in Big grid slide and td_block_11?
Hello crazydiver,
Please notice that you can use the do_shortcode method for adding your Custom Ad 1 where you want using this snippet of the code -> echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); Also, please ensure that you have add your add code in Custom Ad 1 in order to achieve as you wish.
Thanks for your understanding!
Hello Charl,
Please notice that our theme has a lot of Big Grid and Blocks which could be used for your desire. Please check our demo preview because there you will see all the theme features -> Blocks and Big Grids and then you can make an idea about what types of elements will be suitable to be used in your project, like this -> http://demo.tagdiv.com/newspaper/block-1/ -> http://demo.tagdiv.com/newspaper/big-grid-1/
Hope this helps!
Thanks for your understanding!
Hi
You have to use the code like here: http://screencast.com/t/XHuVjj3my0
<?php echo get_post_meta($this->post->ID, 'custom-field-name', true); ?>
In above example I’ve added post_views_count field in trending now block. Note that you will need this css to make the custom filed content visible: http://screencast.com/t/ynfAnosf
.td-trending-now-display-area .entry-title {
display: inline-block!important;
}
Thanks!
How could I prepend some icon, for example fontawesome icon, to a block’s title
Thanks
I found a workaround on this by combining blocks 3 and 7. I am still curious how to do this as I may use this on other blocks. Thank you!
Hello, is it possible to remove the article text below the first article on box 2 – 1 column layout on a specific page? Specifically the text that starts with “The model is”
http://www.screencast.com/t/2Km4FfBYj
Thank you!
John
Perfect! Thank you – I found that this Sunday after looking around. I’m new to WordPress and used to the typical easy stuff (like Wix) but I was able to get the hang of this. The only other question I have is, is there a way to customize the category pages more as you’re able to customize regular pages?
For example, a category labeled “News” has a pre-made page that isn’t very customizable where you could add blocks, etc.. Is that an option or is that not possible?
I fixed one of the problems.
I copy’n’pasted the code from the Text Block to “Raw html”. That way I got the picture to align a lot better with the text.
Now it’s just the space between menu and the picture with text.
Thanks Catalin BUT it doesn’t help.
Because the first capture isn’t what you said about Block Settings … it’s on Pages, Homepage and Modifier (modify) Page.
And News Ticker, BUT, I do not see how change the text as shown on this image
Thanks in advance and have a nice day.
Hello Bro!
Thank You for your awesome and very helpful reply.
I have successfully inserted the icons into module 3.
But the plugin is presently sharing the homepage on alone.
http://www.screencast.com/t/b4PWWitwYN
Please what should I insert into the function, to pull individual Post Url instead.
Here is my code.
<?php
class td_module_3 extends td_module {
function __construct($post) {
//run the parrent constructor
parent::__construct($post);
}
function render() {
ob_start();
?>
<div class=”<?php echo $this->get_module_classes();?>”>
<div class=”td-module-image”>
<?php echo $this->get_image(‘td_300x194’);?>
<?php if (td_util::get_option(‘tds_category_module_3’) == ‘yes’) { echo $this->get_category(); }?>
</div>
<?php echo $this->get_title();?>
<div class=”meta-info”>
<?php echo $this->get_author();?>
<?php echo $this->get_date();?>
<?php echo $this->get_comments();?>
</div>
<?php if(function_exists(‘social_warfare’)):
social_warfare(array( ‘use_current_page’ => true ));
endif;
?>
<?php echo $this->get_quotes_on_blocks(); ?>
</div>
<?php return ob_get_clean();
}
}
Hi,
what is the best way to display standard WP meta custom fields?
I need to display fields in blocks on front page, on categories and single view.
Regards
Daniel
Hello, i’m creating a native apps based on wordpress site powered by newspaper. In one of the block i’m using sort popular post by last 7 day .
I dig deep into meta_key and meta_value and assume there are ‘post_views_count_7_day_total’ and ‘post_views_count_7_day_last_date’ that control the query.. in order to create compatible json with wordpress json api v2.. i create this custom query:
SELECT
mm_posts.ID as id,
mm_posts.post_date as date ,
mm_posts.post_date_gmt as date_gmt,
mm_posts.guid,
mm_posts.post_modified as modified,
mm_posts.post_modified_gmt as modified_gmt,
mm_posts.post_name as slug,
mm_posts.post_type as type,
mm_posts.post_name as link,
mm_posts.post_title as title,
mm_postmeta.meta_value
FROM
mm_posts
Left Join mm_postmeta ON mm_postmeta.post_id = mm_posts.ID
WHERE
mm_posts.post_type = "post" AND
mm_posts.post_status = "publish" AND
mm_postmeta.meta_key = "post_views_count_7_day_total" AND EXISTS(
SELECT
mm_postmeta.post_id
FROM
mm_postmeta
WHERE
mm_postmeta.meta_key = "post_views_count_7_day_last_date" AND
mm_postmeta.meta_value BETWEEN UNIX_TIMESTAMP(DATE_ADD(CURDATE(),INTERVAL -7 DAY)) AND UNIX_TIMESTAMP(now())
)
ORDER BY mm_postmeta.meta_value DESC, mm_posts.post_date ASC
Can you clarify if i make query right ?
Thanks
Hi, see link, this is the type of page I want to create. Which block or grid will be ok for this?
Hello johnmiao,
If you want to decrease the padding-bottom and margin-bottom for your Block 17, please try the code below and place it in Theme panel->Custom CSS area.
.td_block_17 .td_module_8 {
padding-bottom: 5px;
margin-bottom: 5px
}
Thanks.
Hello
You can change any block;s settings by following this guide: https://forum.tagdiv.com/block-settings-tutorial/
Thank you!
Hello,
You can edit the blocks exactly like on the sidebars in the widgets area. For this you need to edit the page where the elements are and press the pencil button to access the block settings This guide should help: https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
Thank you!
Hi,
Thank you for your appreciation, Your grids do not seem to use thumbnails but rather the full images. That is why thumbs do not display properly. Please activate thumbs from here: http://screencast.com/t/lvKsDY4vQ and then regenerate your thumbnails. You can use this guide: https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
Thank you!
My Website is http://spandan.nmims.edu/ in which on home page there is a td_block_trending_now and td_block_big_grid_3 used which is hiding on mobile i dont want them to hide on mobile devices please help me..
Hello sarawakv,
Please notice that the upgrade of the theme does not influence the comment count. So, if you want to disable these black boxes, you will have to turn off from Theme panel->Block Settings, like this -> http://screencast.com/t/SulvsdSpNff
Thanks for your understanding!