- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
Hi, folks
I’m “re-tuning” the NM 3.1 – having moved from v2 (finally!). Working great with the beta TD Composer so far, but barely touched that.
I’m looking to completely remove these loading from theme:
http://fonts.googleapis.com/css?family=Open+Sans%3A300%2C400%2C600%2C700&ver=4.6
http://fonts.googleapis.com/css?family=Roboto%3A400%2C300%2C700%2C700italic%2C400italic%2C300italic&ver=4.6
and instead use the new default font stack used by WordPress 4.6x in place of Open Sans.
This new font stack is a little better than the one I have been using (noted in my epic optimization tutorial thread near the end) as it is tuned for modern mobile devices much better than my desktop focused version:
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
(REF: https://make.wordpress.org/core/2016/07/07/native-fonts-in-4-6/ )
This would make a nice “default” setup for Newsmag, “unless Google fonts chosen,” vs default having Google fonts chosen.
In any case, if you can help me out by pointing me at the correct files to tweak to make this change would be awesome. Things have moved around a bit, so the old search/replace in style.css not quite same method now 🙂
I have no problem hacking a core file to remove Google font calls, as I’m prepared to do that each theme update for my other tweaks.
THANKS!
Main issues with AMP is bad HTML (inline styles in your post), or a bad plugin injecting javascript into header, or a bad configuration with a CDN or compression service that tries to re-write/compress the AMP code and breaks it.
Old posts where you might have put in a YouTube video with ‘http’ might also not work as all external stuff should be https for amp.
This is a great thread. I have been trying to work with the AMP plugin from Automatic as well as the AMP Glue from Yoast … even with those two turned on, the website is still not passing the AMP Validation when tested.
TeacherCast.net
You should ask the wp developers :).
https://codex.wordpress.org/Child_Themes
I personally think it’s a waste of time and effort but that is my personal opinion on the matter. The purpose is to customize the theme files without altering the main theme and saving some time for future updates. If the file does not get modified in the next 3 updates for example, then you do not need to touch the child theme files…but if the files do, then you have to replace the files and re-apply the modification. I find it a waste of time as you need to constantly keep track of what files are changed when updating.
There are different opinions on the matter though so It is depends on the user preference.
Thanks.
Hello Bogdan,
thanks for your quick reply.
the menu height did work quite well. More than 90px is not possible?
with regen. Thumbnails the pictures didn’t change.
is there somewhere another option?
and where can i fill in the red marked area? i did the margin on top & bottom of this row, but it only did the bottom margin.
have a great day, Jan
Hi there.
I’m trying to figure out the same. I followed the video tutorial and have 0 in Facebook likes. My page is a Community, have the Facebook Application as online (not in test/dev mode).
I try on online website and offline (wamp) have the same thing.
On the online website, I saw another thing, in widget page, some items are disabled like td_demo_sidebare_fashion/tech/sport/video/fashion etc. Now I can’t setup facebook id, key etc …
Someone can help please ?
Marc
Hi!
I did use Visual Composer to create my page layout and set title of each box categories already! My problem now is: I want to start insert content into each box column, but when i put my post, it appear in every column, which i doesn’t want that!!!
My question is “How can i set my post to appear in each destination column?”
For Example: I create a post name “Football” and i want to appear only in “Sport Column” not other column that i have on that page!!!
Second question: I want people be able to create their post/article on my site page, which function or plug-in should i use?
Thank you.
Hi
Basically you will need a function which pass the value from url as a tag in block’s shortcode. Here is an example code which insert a custom value in shortcode:
$v = $_GET['val'];
$block = '';
if (isset($v)){
$block .= do_shortcode('[vc_row][vc_column][td_block_11 tag_slug="' . $v . '" limit="3"][/vc_column][/vc_row]');
}
This code can be used as a function in fuctions.php then you can try to generate a new shortcode for that block using add_shortcode() function. For more details about add_shortcode function check this link: https://codex.wordpress.org/Function_Reference/add_shortcode After you generate the shortcode can be used in visual composer. This link may also help: https://codex.wordpress.org/it:Riferimento_funzioni/do_shortcode
Note that you will need some codeing skills in order to complete this task. I’ve offered just a basic example above but if you still need guidance on this or 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 as we can’t offer customization services at the moment.
Thanks!
There is a bug with mobile menu (menu styles that kick’in on media query ). If you have more social items then 6, they will not be shown but still will be rendered.
@media (max-width: 767px)
Here is an example:
https://s3.postimg.io/y4m2akkxf/multiline_socials.png
IMO they should be shown.
yes i had proper id, but as i can see its not playlist ID but video ID – that is quite confusing.
and btw video ID can have - (dash) in it as your’s example shows on politics demo jV-VGfDcbiQ and dash here is not separation but its an ID.
still, after providing video ID it did worked. IMO it labeling could be improved.
Perfect, tanks …
I have another fix!
This site appears different colors on the theme when it is loaded …
How do I get this second color that appears and disappears when loading the site?
http://www.julianodalbosco.com.br/news-2?preview_id=8346&preview_nonce=b872c3ca80&preview=true
Hi
Please make sure that you added the correct html code in theme panel, for more details please check this link where I’ve provided a valid example for banner ads: https://forum.tagdiv.com/topic/header-ad-breaking-header/
Thanks!
Hi guys, I know is a silly question but I can’t get my post (http://www.tekcrispy.com/2010/10/27/analisis-samsung-galaxy-s-android-mucha-potencia/) looks like this example from the main Newsmag demo (http://demo.tagdiv.com/newsmag/my-girlfriend-has-exhausted-our-strategic-supply-of-string-cheese/) What I missing?
I know the featured image is 1068×800, my problem is that I can’t get the body centered. Would you like to help me?
thanks for this nice theme
but i have a problem how can i put the current year of this year in the footer copyright section so i have something like this? ( i don’t want to be updating this stuff every year) !
©2016 By sample text
regards nokah
CAUTION:
note in my functions.php example above/prior post I have this section which you may not need; I use this for changing the author slug to profile for specific site; but not needed for most folks and you would also need to update the templates for Newsmag to point to /profile/ vs /author/.
This section near top likely NOT useful to most folks and can be removed:
add_action('init', 'cng_author_base');
function cng_author_base() {
global $wp_rewrite;
$author_slug = 'profile'; // change slug name
$wp_rewrite->author_base = $author_slug;
}
As the title describe, using iphone5s & iphone6s, the author name is lost behind the post image. I try to copy/paste the code that i saw on another post (td-post-author-name inline etc) but it didnt change anything.
Is there any another way to fix this css issue because im getting bad feedbacks from visitors.
Thanks for the beautiful theme, the best in the market!!
Oh… just happen to have that window open, duh ….
here is example of adding a filter for Automattic AMP plugin in your functions.php file where you can include ads, shortcode, etc.
add_action( 'amp_post_template_footer', 'xyz_amp_add_pixel' );
function xyz_amp_add_pixel( $amp_template ) {
$post_id = $amp_template->get( 'post_id' );
?>
<div class="s2pamp02">
<p>My Custom Message Went Here</p>
<!--Related posts-->
<?php if ( function_exists( 'echo_ald_crp' ) ) echo_ald_crp(); ?>
</div>
Some good articles out there now too
http://torquemag.io/2016/03/making-amp-wordpress/
hope that little taste helped somebody 🙂
I don’t think any kind of “slideshow” would work unless you have build out your own custom template. AMP is really more for stories, not for viral slideshows.
In our case we were able to do our own ‘related posts’ using the CRP plugin, then simply including the shortcode via a hook, along with a string to include link back to the story page and message to follow us on Apple News channel if using iOS device.
If I have time I’ll try to post that someplace.
Right now I’m in process of “thinning” Newsmag 3.1 along with the custom composer plugin to replace the v2x version and TD ‘SHIM;’ for one of our sites as text (server crash messed up the site, so seemed good time to move onward ) … just took 50kb out of main style.css since we don’t use BBpress/forum or Buddypress. Boom 50KB gone from style sheet 🙂
Hi, in a review (1 to 10 points) if I use decimal points the final average is wrong.
This is the example
6,5
7
6
Average: 6,3
The correct result should be 6,5.
There is a way to fix it?
Hello,
The background can be added to the category from the theme panel-> per category settings like so: http://screencast.com/t/xYVv6LaUXkd8
Here are examples of how the templates will look with background:
http://demo.tagdiv.com/newspaper/category/template-style-6/
http://demo.tagdiv.com/newspaper/category/template-style-8/
Thank you!
Hi,
Our css is not the biggest one, we found other themes with bigger ones. The css got so complex due to market demand and users don’t want simple themes anymore and the majority of users want a theme that works with a lot of other features. Many large complex themes have one large CSS file for better caching, while some others break it down into 4-6 other files. Our choice is one file for better performance and it can be minified.
We also have worked on this and now the woocommence style is in a different file which is loaded only when woocommerce plugin is active and also the demo styles were removed, each demo has its own file.
So if you want to remove some code from style.css you are free to do this if you have some basic experience. The specific css related to the post templates contain the unique class for each one for example:
– .td-post-template-default – for default post style/template
– .td-post-template-1 – post style/template 1
– .td-post-template-2 – post style/template 2
and so on
Thanks!
Hi,
If you want to handle the dropcap color from the theme panel, you should remove any custom code that mentions ‘dropcap’. This way, you can use the theme panel drop cap color without it being rewritten by custom code.
For the bonus question, there is no automatic way of doing it, but you can use a span element and simply wrap the preferred text in it. You can use this code for example:
<span style="color:#FF0000; text-transform:uppercase;">my text here</span>
There is no simple way of doing it automatically.
Thank you!
Hi,
just looked through your sample again.
Yes i can do this.
Warm regards and thanks
tony
Also just to add – I’ve been using the Automattic plugin with Yoast Glue, Yoast SEO and there is also Custom (AMP) Accelerated Mobile Pages plugin by lamvt – this adds ‘related posts'(although at random dates) and it adds your mobile menu -they all work great with the theme – I don’t use any of my ads at all – why? because the AMP pages show up in search results (currently only news carousel though this will change soon) – and therefore they’re probably new visitors who will view the main site at some point, page views increase anyway, brand awareness increases, and the big regional competition aren’t using AMP yet because they’re scared – so I actually look better then many regional brands – the theme works perfectly with this set up for me.
-
This reply was modified 10 years by
PatWire.
Hello,
You can create any page using visual composer and set it up as a shop page. Here is an example of a custom page built in visual composer for a shop: http://demo.tagdiv.com/newspaper_tech/shop/
Woocommerce ads blocks in visual composer you can use on any page: http://screencast.com/t/3c3awjKIiA
Thank you!