- NewsmagBlock settings tutorial
- NewsmagCategory tag on modules/blocks
- NewsmagtagDiv Composer Tutorial
- NewsmagWeather Widget
- NewsmagExchange widget
- NewsmagInstagram widget
- NewsmagHow to use the Visual Composer plugin
- NewsmagIntroduction
- NewsmagFooter templates
- NewsmagCustom ad spots
- NewsmagLoading image effects
- NewsmagSmart sidebar
- NewsmagFeatured images
- NewsmagGeneral settings
- Newsmag7 days post sorting
- NewsmagTheme thumbs
- NewsmagExcerpts introduction
- NewsmagTheme colors introduction
- NewsmagtagDiv slider gallery
- NewsmagVideo playlist
Code:
<?php
$theShortcode = '[vc_row][vc_column][td_block_15 custom_title="Related Articles" td_ajax_filter_type="td_category_ids_filter" ajax_pagination="next_prev"][/vc_column][/vc_row]';
echo do_shortcode($theShortcode);
?>
This works fine (apart from an issue with the category box dropping a few pixels which I have raised in another post). However there’s no option to filter based on post ID like you can with the Post Grid/Post Masonry Grid options. Is there a simple enough way to achieve this here?
I’d love to use Post Grid/Post Masonry Grid in the above example but unfortunately as per the plugin authors reasoning:
Currently it is not possible because Grid requires special hashkey which is stored in meta data of the each post. Each hashkey is unique and related to information in meta about grid attributes. The reason of such implementation is security. Because vc getting data grid from ajax request and data passed to this request is ID.
Hi sesantanajr,
I have checked your site and some of your images are cropped, but they don’t have width and height, for example – http://screencast.com/t/Cmfz8ZNJUNJ it should look like this – http://screencast.com/t/uPWhut4R
Each featured image is cropped to a specific size, here you can see the thumbs used on modules – http://screencast.com/t/9xmQZoZFrGR and the code is located in td_config.php file – http://screencast.com/t/c7LeWSH7p3VK
You have to use Thumbnail Upscale and Force Regenerate Thumbnails only if you use smaller images than the thumb size on modules/block. If the images are not cropped you will have just to regenerate thumbnails – https://forum.tagdiv.com/using-the-theme-with-existing-content/
Did you modified the code? Please remove your custom modifications or try to so a clean install then check again without any plugins active, leave just Visual Composer active, clear cache and see if you still have this issue after you regenerate the thumbs.
Yesterday when I have checked your site the thumbs were cropped to the specific size. The theme doesn’t use the full size image on modules, I have just provide more details in the documentation how the theme creates the thumbnails and how to change the cropping mode if you want this.
Thanks!
Example URLs: http://beta.virtualfestivals.com/uncategorized/164812/ and http://beta.virtualfestivals.com/event/reading-festival-2015/
Specifically on the 2nd one, the category title seems to have dropped down a few pixels. It’s a custom post using the do_shortcode function
Shortcode:
[vc_row][vc_column][td_block_15 td_ajax_filter_type="td_category_ids_filter" ajax_pagination="next_prev"][/vc_column][/vc_row]
Any advice? Also, any advice on how to filter posts based on post ID e.g. only show posts with ID 1,5,6…,488
Thanks
Hello,
You can change the tab colors from visual composer:
http://screencast.com/t/bD0X3JqC – http://screencast.com/t/qYf6QxC5
If you mean the title of the tabs not the tabs themselves, you need to use custom css to style the H2 title of the block. You can target the h2 inside the container using child selectors and apply your styles to it.
Example:
.vc_tta-container > h2{
color:red;
background-color:green;
display:table;
padding:8px
}
If this is not what you mean, provide more details so i can better understand how to help.
Thank you.
Hi – I’ve just purchased Newspaper and am investigating whether it will support all the customisations I have built with my current theme.
One aspect that isn’t working as expected is I have some custom post content that is configured using the Toolset group of plugins.
You can see how it outputs using my current theme here.
This is how the same page outputs using Newspaper:
I obviously haven’t configured the logo, menus and sidebar, but my concern is that none of the custom post content is visible, except for the title.
The Toolset support have said the following:
It might also be possible that you need to induce your View with PHP:
https://wp-types.com/documentation/user-guides/views-api/But that should not be necessary if your theme is coded with the WP Standards.
https://wp-types.com/home/compatibility-toolset-plugins-themes/
Whenever I’ve previously tested other themes, this content displays automatically.
Please can you advise if there is a way that I can make this work?
Many thanks in advance.
Cheers, Rob
Hi,
To make an idea how the shop page from demo is designed I will provide you the page content – http://pastebin.com/w8HLZH9B Just create a test page, switch to Classic mode and paste the content – http://screencast.com/t/f4bXaRYx
Like you can see we use text block where we added the block title manually and woocommerce blocks shortcodes – http://screencast.com/t/Vu0zVwXrKwA2 For Latest products we have added in the text block only the title as the latest products are added automatically to the shop page – http://screencast.com/t/32tPWq3AV8bC like in your case and from panel templates is set no sidebar for shop page – http://screencast.com/t/9SYvrD93W
You can try to do something similar.
Hope this helps!
Hi
The post grid and masonry grid are built blocks from Visual Composer and the theme doesn’t change their functionality. Adding a new filter for this blocks is not an easy task so this can be done with lots of customization in plugin’s files, but you would have to look for a developer from sites like http://studio.envato.com/ as we’re not available for any customization services at the moment. Also you can try a plugin with a similar functionality but we didn’t test any of those plugins so I can’t make any recommendation in this regard, but you can try and use the one that suits you best.
Thanks for the message!
Hi
1. You can filter the post displayed in blocks by category like here: http://screencast.com/t/3B9CL95TGOzo Also you can find more details about blocks filters in our documentation: https://forum.tagdiv.com/block-settings-overview/
To remove the drop-down menu just disable the ajax filter: http://screencast.com/t/ruyNUPFxqzS
2. I am not sure what you mean, please provide more specific details.
3. You can add a review for every post from post settings: http://screencast.com/t/U20FtLaUTU
Hope this help.
Thanks!
Hi,
Do you want a similar block like Related Articles to display posts from specific category? You could add a block to a page and filer posts by specific category then take the block shortcode and use do_shortcode() function bellow the related articles code in the template that you use, it may need some additional css customization – http://screencast.com/t/0qfRLEEiD – https://codex.wordpress.org/it:Riferimento_funzioni/do_shortcode Please note that this widget will appear on all your posts from all categories, not only on specific one.
If you don’t have basic experience I suggest to hire a freelancer to do this for you as we cannot provide custom work at this time, sorry!
Thanks!
Hi
To change the font size you need to modify this value from the css you provided above:
font-size: 20px;
The css you indicated it’s for the blockquotes: http://screencast.com/t/yLCgxNyJ4c6O
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi
Visual composer plugin doesn’t have on option to create a sidebar, just to add one already created in Appearance > Widgets on the page using the widgetized sidebar block: http://screencast.com/t/mWckEF05M – http://screencast.com/t/WJgniVOJX You can use those sidebars in every post/page.
If this is not what you mean please provide more details, also a screen pointing the way you added the sidebar in VC would be helpful.
Thanks!
I have setup my homepage to have two sidebars and both are smart sidebars via VC but the social counter one has no title and the popular categories does not have a title but in the VC they are there. So why are they not showing on the actual sidebars on homepage? I am not using widgetized sidebar just the blocks from VC.
Do I have to use widgetized sidebar for all titles to show? I tried the widgetized sidebar for two sidebars but the second widgetized sidebar would not be a smart sidebar for some reason. So I did it with just the blocks instead for both sidebars instead of two widgetized sidebars. Hope you understand.
Hi Lucian,
I use the Newsmag theme for my site http://www.pollupdates.com. I need to move five Styles to the footer. I followed your instructions and used the code below but to no benefit. Google PageSpeed still shows all five Styles to block rendering the content above the fold.
$this->move_style_to_footer(‘contact-form-7’);
$this->move_style_to_footer(‘wp-polls’);
$this->move_style_to_footer(‘google_font_open_sans’);
$this->move_style_to_footer(‘google_font_roboto_cond’);
$this->move_style_to_footer(‘js_composer_front’);
$this->move_style_to_footer(‘td-theme’);
Can you please help me.
Best,
Soumitra
I created a field in Advanced Custom Fields plugin and tinkered with loop-single.php and added the code
<p><?php the_field('price'); ?></p>
And it showed up, Great! but that was just a test.
Could you please guided me where I can insert it after the excerpt on the blocks on my homepage (blocks 4 and 5) and of course the category and tag pages. Is that the archive template?
Also would you have any handy css code that I can play with and adjust the style, perhaps something to start me off with…
thank you so much!
Hey guys, I’m having trouble with Block 14 — It’s set to order by latest, but it will not show the correct order (even though the order is fine elsewhere on the site)
See below the banner here: http://httvus.net/en/powerlove/
Any ideas?
Thanks!
oh, I have installed Advanced Custom Field and read the post: https://forum.tagdiv.com/topic/where-do-i-insert-advanced-custom-fields/
So where do insert for the blocks, after the excerpt appears?
thank you
I have a homepage with block 4 and 5’s on it.
I notice block 12 has a read more button.
Could someone please guide me to modyfing these blocks and the archives blocks too.
Basically I want to add a “price” field to the image/excerpt.
I assume I set up a custom field for each post, field being “price” and each post I enter the price in that field, one post may be $99 another $114 etc.
I wouldn’t mind doing it like this: http://www.localamsterdamtours.com
I like the from $22 text added to the block and I like the “book now button” too. Any suggestions.
Our site is p a r a d i s e f o u n d t o u r s (dot c o m)
Thanks for any suggestions…
Yes, it is working now. But how do I adjust the font size?
And when I added the into the theme panel, I saw the following code. Can’t remember what was it for. If you are able to interpret this. Thanks.
.page blockquote p {
font-family: ‘Roboto Condensed’, sans-serif;
font-size: 30px;
line-height: 40px;
font-weight: normal;
font-style: italic;
text-align: center;
text-transform: uppercase;
color: #4db2ec;
}
Is there a way to change the colored square that has the title of the block in it? I know there is a way to change the color of the square?
If there isn’t maybe that is a feature to add. I have used one of the top in sales theme in theme forest and honestly this theme is much more customizable (recent post ascending/descending, random, certain categories, different layouts big pics, small pics etc etc) and easier to use. Thank you for all your hard word and excellent support.
The reason why I ask is I would like to buy another license but don’t want both sites looking so much alike.
I’ve seen a lot of increased spam/logins on my site as well. I can’t say its from here or not. But you may try a WordPress plugin called “WordFence” as it has helped my site block a lot of IP’s and people trying to login via an unauthorized login name.
I generally agree with what Steven said.
Of course, major hackbots actually go after ALL sites running WordPress, and even folders with /wp-content/ or /wp-admin/ simply by doing Google search.
It’s of utmost importance to keep your core WP files updated for all the security patches.
It’s imperative to learn about security strategies:
1) rename your admin account to something else — you should NEVER have account called “admin”
2) use tools like “limit login attempts”
3) consider disabling pingbacks and XMLRPC unless you have absolute need for them
4) make sure your host has system in place like IPTables/CSF for auto-blocking port scans and basic probing of server.
5) delete old plugins and themes you are NOT using — 5 year old theme in your theme folder might be hackable. Just because it’s off doesn’t mean the php files are not still there (!).
6) check your site/domain error logs from time to time to look for folks from certain IPS generating large amount of errors; have your host add them to a block list, or in some cases you can do so with htaccess if not other method.
7) try not to have any “account signup” forms on your site; make sure any contact forms do NOT send auto emails back to the sender — instant spam engine.
8) subscribe to security blogs like Securi which keep up on major WP hackables
9) don’t install any plugins which have not been updated in 2015 unless you’re 100% sure they are safe as they may not have the security updates of recent months
10) don’t install free plugins “found on the web” on some random website (don’t trust “glowing reviews” from junk WP review sites which are affiliate link farms!)
Use common sense, be proactive in having a security PLAN like regular safe backups, etc. and “be careful out there!”
Chris
hi
i can’t change color of tab using newspaper theme style
because is deprecated, i have to change
vc_tabs> —->>> vc_tta_tabs
vc_tab> —->>> vc_tta_section
but cannot change color under text
in block setting is enought choose a custom title background color for this block
how can do with tabs?
thanks
After updating the VC am not able no more to edit blocks are even add etc…just say i’m not able to do one thing in there with any blocks i’m getting a message at the bottom of the page saying..
Elements within this list are deprecated and are no longer supported in newer versions of Visual Composer.
For our system we use the title in the “title” and then Pinterest now auto-populates the description data on Pinterest with the OG tag for description, not title. This is how the 2015 API is setup. It’s *not* normal to have the story title populate the “description” block, as that duplicates the “title” block. So you may wish to double check that.
Hello Myra,
You could do that using a custom CSS but be carefull because it will stretch the white container over your content: http://screencast.com/t/30mgfGny
.block-mega-child-cats {
overflow-x: visible;
overflow-y: visible;
max-height: 400px;}
Thank you!