- 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
was looking at the demo site and like the idea of the popular videos widget on the home page. i cant figure out how to create this.. is it in the visual composer and if so which box is it?
also while i am at it..
on the demo site there is a BLOCK 2 visual composer that says “Dont Miss”. Does anyone know how to get the catagories that are writen below the title ie.. All, Beauty, Get inspired, Health & Diet
Hi,
What are you trying to add there? You could use the do_shortcode function to add a block for example, just go to loop-single.php file or other post templates http://screencast.com/t/8IeXdCKghap, depending on where do you want to display this and add your custom made block (use page builder to build your block as you like and then copy the shortcode http://screencast.com/t/Ed8kiEm5Xk3t and add it in the do_shortcode function) like this: http://screencast.com/t/02WxPlCC3vE
This how your code should look like:
<?php do_shortcode('[td_block3 limit="6" header_color="#000000" header_text_color="#ffffff" title_style="td_title_style_1"]'); ?>
Hope this helps!
Thanks!
Hi,
I’m not sure I understand your question. Do you want a white background for all active menu elements?
For example if Home is selected to be shown like this: http://screencast.com/t/PluN07fc3G2 Is this what you are trying to do?
Please let me know and please provide more details.
Thanks
Hi,
For the first matter you can chose the post you want to show and add them using the “Filter by tag slug” feature, so you can add the post you want from a certain category and set them to “random”.
You can chose a specify tag to do this, “category 1” for example and add it at those post you want to add and each time you want to add a new post add this tag to it.
For the second you could use the same “Filter by tag slug” feature and set different tags, specific tags for the post you want in the first block and another for the tag you want in the other block so this way you can control the post which appear in those block and will be unique.
Hope this helps!
Thanks
Hi,
@Christopher Thanks!
You can do it like @Christopher suggested or you can add this filter in your functions.php file like this: http://screencast.com/t/68OrWnaX
add_filter('body_class','td_my_custom_class_names_on_body');
function five_posts_on_category( $query ) {
if ( $query->is_category() && $query->is_main_query() ) {
$query->set( 'posts_per_page', 5 );
}
}
add_action( 'pre_get_posts', 'five_posts_on_category' );
Change the $query->set( 'posts_per_page', 5 ); value from 5 to the number of posts you want to display on your category page.
Hope this helps!
Thanks
Hi,
Unfortunately we don’t have a feature like that, you can do it by using this custom css:
.home .span4 .wpb_widgetised_column {
background-color: lightgray;
}
Add it in Theme Panel > Custom CSS to change the background on your Homepage, you need other css if you want to change it on other templates as well, for example to change the background-color on posts page you have to use this css:
.td-post-sidebar {
background-color: lightgray;
}
Hope this helps!
Thanks
Hi,
Tested this and look like you can’t do it. The button doesn’t gets the color only if it’s one of these: http://demo.tagdiv.com/newspaper/buttons/
If you want other colors you have to add it via css and you can use the buttons class and re-write the color.
For example in your case you can use the class for green and add your own color so when you use the green for color it loads your custom color, like this:
.td-post-text-content .wpb_green {
background: #52D017 !important;
}
Thanks
Yea…
I didn’t know what was fixed and what was not so I just did the same for both (td_module_slide.php & td_module_slide_big.php).
Also, if you are doing this – I found that I need to change the other parameter as well (chars per line also) to make it look nice – particularly when working with type “letters” so you may want to add this option the panel… (for both slide types).
@Lucian,the theme is ignoring any size you set in the ad code, even if you select Smart sizing in Adsense Panel.
How I worked around this issue is by specifying the ad sizes for different viewports in the option that the theme gives.
For example, if I am using a leaderboard ad, I paste the code. Then instead of keeping resizing at auto, I set 728×90 for desktop, 320×50 for mobile and so on and so forth. That works perfectly.
Hi Cherry
you might want to keep ONE thread, vs starting three or more regarding your site and pagespeed. Basically if you get all the things updated already covered in your other two threads, then mobile speed will also increase.
Again, as I’ve noted previously, you can’t do anything about the external ads being served which impact speed. Not sure how you’re loading ads on a demo site anyway, frankly. You should turn ads OFF for testing your “actual” speed. So the “errors” for mobile for the javascript and images from Google ads and advertisement browser caching, are impacting your score but nothing you can address and are false positives vis a vis the site and theme.
You *can* minify the main .css file which is showing as NOT minfied, as we’ve already covered in your prior threads.
Minifying http://cherrykoks.de/âŠntent/themes/Newspaper/style.css?ver=4.1 could save 7.1KiB (16% reduction) after compression.
And basically don’t use contact form 7 unless you actually need it. Since you don’t have a live site, why would you need somebody to contact you anyway at this stage of your playing with the theme and setup without actual content. If you’re planning to use that, then you could presumably add its css to bottom of the main style.css, then hack the plugin to not write its own CSS into the head of the theme; or this would be example of where — as you’d asked elsewhere — you would add the plugin to the speedbooster plugin code to get it dumped at bottom of theme and optimized.
And remember best to test a post page for score not home page, since most people do NOT land on a site home page, but “surf in” to content from a social media link/share, or search result page, etc. — home page will always be a trickier prospect since it’s not indicative of the rest of the site, using sliders, modules, more photos, ajax loads, etc.
Also be aware you cannot get a 100/100 score with a WordPress site running numerous photos, plugins, ads, social media hooks, etc. Only people who have accomplished this have done custom sites without images, using CDN, and custom coding to maximize above the fold content load separate from below the fold content.
If you get above 80 on mobile and above 90 on desktop, you can really get on with your life and worry about content and marketing.
-
This reply was modified 12 years by
simchris.
Hi,
basically
blockquote p {
border-left: 4px solid #ccc;
color: #a5a4a4;
font-style: italic;
margin: 30px 0 30px 15px;
padding-left: 15px;
}
if anything doesn’t work add the important tag as in my first example, as it needs to over-ride the default style
-
This reply was modified 12 years by
simchris.
Hi, I think you need the p tag in there with this theme (remember CSS changes need to match the classes used on the theme, not plain HTML which you’re writing from scratch).
For example I modified my own blockquote by putting this CSS into the custom CSS box in the theme admin panel:
blockquote p {
font-size:20px !important; line-height:26px !important; text-align: left !important; padding-left:20px;
}
-
This reply was modified 12 years by
simchris.
Hi,
fyi if your server is setup properly you don’t need to put the gzip/deflate element in your htacess as it’s set at the server level as always on; unless you need that for your CDN – but that is more likely to have gzip/deflate on for speed anyway.
For plugins modification/addition to the speedbooster; obviously this only applies to the js and css related stuff which is purpose of tagdiv speedbooster. You don’t need to mess with an image optimization plugin, for example.
The world won’t end if you don’t remove the query strings, btw. Most WP sites leave that as-is and are successful due to content and marketing, not the query strings. Also note it might be an incremental “conflict” with this dot revision of theme and speed booster; meaning the benefit of the speed booster being on is greater than losing the query strings. Google uses them, so you can too. It’s “ideal” to remove them but that might not even improve stuff by one point, particularly if you test that with Pagespeed Insights directly vs GTMetrix.
However, you are correct, it would seem like you could remove the "?ver=" and test. Why not try it ? You’re not running a live site, obviously, so if you crash, no biggie. Just remove the plugin, and put it back.
Hello TD team!
Just stumbleb upon something that I believe it would make a great addition especially to your post style 4, a story highlights section, very useful for longer articles and features.
You can see an example here : http://www.momizat.com/theme/?theme=multinews
Thank you for your consideration,
Anastasios
Well there is nothing on ur site but the “Welcome page from wordpress” that i can see when i go to ur site and test it,may be that’s why you seeing that score,and also with out using the theme speedbooster all ur JS & CS not going be in the bottom and other issues you going run in too,this theme need that speedbooster to make it work good….

Every post on ur site is broken with a 404 not found…
Ok now, here’s the story:
I deleted my whole blog because still having issues. So I reinstalled everything new (had the demo running, now own build) I also thought, that Cloudflare would be the problem- but it isn’t (right now I don’t use CF)
Christopher Simmons helped me a lot- so I was able to solve a lot of things on my own.
But there are still some things I can’t handle on my own (seems like it) – and I’m on the edge of despair.
FYI my installed plugins:
tagbooster, W3 Total Cache, wpSeo, Code Embed, TinyMCE, Animated Gif Resize, Antispam Bee, Async JS and CSS, Broken Link Checker, Contact Form 7, EWW Image Optimizer, Jetpack, Query Strings Remover, WP DB-Manager, Google XML Sitemaps and the Visual Composer.
No matter what I do (installing Query Strings Remover or adding a code to the functions.php) I STILL HAVE PROBLEMS WITH THE “REMOVE QUERY STRINGS”
I really need someone to help me fix this or show me how to! I’m so helplessly I could cry over this!
I would like to start with adding content, but this makes me really desperate
The claimed files are:
Remove query strings from static resources
C (70)
88%
Content High
What does this mean?
Resources with a “?” in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:http://cherrykoks.de/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.1
http://cherrykoks.de/wp-content/themes/Newspaper/includes/wp_booster/external/bootstrap/td-bootstrap.css?ver=4.1
http://cherrykoks.de/wp-content/themes/Newspaper/style.css?ver=4.1
Next one is:
Specify a cache validator
A (90)
93%
Server High
What does this mean?
The following resources are missing a cache validator. Resources that do not specify a cache validator cannot be refreshed efficiently. Specify a Last-Modified or ETag header to enable cache validation for the following resources:http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700?ver=4.1
http://gtmetrix.com/reports/cherrykoks.de/4u0OTZRR
Note: I use as fonts: Georgia and Times New Roman over the whole blog! I was reading a lot of threads with tips as “Comment them out” “delete it” and this is also not working. When I try to comment out in functions.php I get a syntax error. And to delete: I don’t know which lines, because my functions.php looks a little bit different.
The font problem also appears in :
Add Expires headers
B (89)
25%
Server High
What does this mean?
There is 1 static component without a far-future expiration date.
http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700?ver=4.1
Page Speed Insights for example is complaining about the “above the fold” thing on mobile Devices and desktop, these are the same files- which GTMetrix claims with “remove query strings”
see here: https://developers.google.com/speed/pagespeed/insights/?url=cherrykoks.de&tab=mobile
Everything else is ok for me- but how can I solve the “few” problems.
I hope there’s an angel in this forum who can save me from getting nuts.
If someone of you needs any file information, let me know. I’m glad for any help with this!
Julia
Until an option is added to the theme panel, you can style it yourself via custom CSS. Either do this through a child theme (https://forum.tagdiv.com/child-theme-documentation/) or through the custom css part of the panel.
Using “inspect element” on a widget reveals the classes involved. For the titles it looks like it’s .block-title. The class of a widget’s text often varies from widget to widget, and I’m guessing from stack to stack. In blog-stack, for example, a text widget’s content is class .blog-stack .textwidget.
Well the commenting out like here:
http://screencast.com/t/AJFofBi3Ym
did not work for me, when I did this – I got a syntax error.
my googlefonts section in the functions.php looks like this:
//google fonts
if ((defined('TD_DEPLOY_MODE') and (TD_DEPLOY_MODE == 'demo' /*or TD_DEPLOY_MODE == 'dev' */)) or defined('TD_SPEED_BOOSTER')) { //on demo and dev we load only the latin fonts
//modify this collection if you want to optimize the fonts loaded
//collection url -> : http://www.google.com/fonts#ReviewPlace:refine/Collection:PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700
wp_enqueue_style('google-font-rest', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700'); //used on menus/small text
}
else {
$td_user_fonts_list = array();
$td_user_fonts_db = td_util::get_option('td_fonts');
if(!empty($td_user_fonts_db)) {
foreach($td_user_fonts_db as $td_font_setting_key => $td_font_setting_val) {
if(!empty($td_font_setting_val) and !empty($td_font_setting_val['font_family'])) {
$td_user_fonts_list[] = $td_font_setting_val['font_family'];
}
}
}
if(!in_array('g_438', $td_user_fonts_list)) {//'g_438', //Open Sans
wp_enqueue_style('google-font-opensans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on menus/small text
}
if(!in_array('g_617', $td_user_fonts_list)) {//'g_617', //Ubuntu
wp_enqueue_style('google-font-ubuntu', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_453', $td_user_fonts_list)) {//'g_453', //PT Sans
wp_enqueue_style('google-font-pt-sans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic-ext,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_445', $td_user_fonts_list)) {//'g_445', //Oswald
wp_enqueue_style('google-font-oswald', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Oswald:400,300,700&subset=latin,latin-ext'); //used on content
}
if(!in_array('g_521', $td_user_fonts_list)) {//'g_521', //Roboto
wp_enqueue_style('google-roboto-cond', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_639', $td_user_fonts_list)) {//'g_639', //Vollkorn
wp_enqueue_style('google-vollkorn', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Vollkorn:400italic,700italic,400,700'); //used on quoates classic
}
}
//add the google style link for fonts used by user
$td_fonts_css_files = td_util::get_option('td_fonts_css_files');
if(!empty($td_fonts_css_files)) {
wp_enqueue_style('google-fonts-style', td_global::$http_or_https . $td_fonts_css_files);
}
I placed the Comment out before : //google fonts and after 00,700|Roboto+Condensed:400italic,700italic,400,700′); //used on menus/small text
}
thank Lord I made a backup đ
hi there,
thanks for taking the time for answering me, this is not what I meant actually. I want the ads to show apart from the picture, right now i have set up inline article ads with adsence so in pages with content i have 2 ads included into the content itself, what i want to do have is a position where i can put ads here. http://surgerystars.com/julie-benz-plastic-surgery-before-and-after-pic/julie-benz-january-2010/ this i an example page.
Example plugin
https://wordpress.org/plugins/in-image-ads-manager/
Hi,
Where can I find the settings so that I can set the number of post that can be viewed on category page? Since setting the number of post that can be viewed on Settings -> Reading -> Blog pages show at most (example 20), the number of post that will be shown on all category page is also 20, which might take time to load on other users. So I want to have a settings as well on how many post which can be viewed on category page. I hope you can help me. Thanks!
Hi,
every Adsense size are set on Auto, so I am clueless why it’s in a 320X50 px box.
I’ve copied the code for that from Firebug:
<iframe width="320" height="50" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}" id="aswift_1" name="aswift_1" style="left: 0px; position: absolute; top: 0px;"/>
I suppose HERE is good since we are paying customers and this forum IS supposed to offer a place for support…
+ maybe others can find it helpful in the future as well, who knows…
My main menu with WPML language switcher: http://screencast.com/t/JY2sLaaQZHtH
Well, putting the language switcher on the main-menu:
- You set the main-menu on the theme panel > header > Main Menu > Header Main Menu <br>
- You can verify this on Appearance > Menus > Manage Locations (but I think it syncs automatically)
- WPML > Languages > Language switcher in the WP Menu <br>
- Check “Display the language switcher in the WP Menu” & choose the same menu you set for the main-menu
- Do all that for the default language that you set for WPML originally & use “WPML > WP Menus Sync” to keep the menu’s sync across languages (where needed).
As for the CSS modifications, add the following to your custom CSS on the theme panel:
/* Menu Language Switcher */
.sf-menu .menu-item-language > a {
display: inline-block;
}
.sf-menu .menu-item-language > a {
text-decoration: none !important;
}
.sf-menu .menu-item-language > a {
display: block;
position: relative;
}
.sf-menu .menu-item-language > ul.sub-menu > li {
direction: ltr;
text-align: left;
}
.sf-menu .menu-item-language > ul.sub-menu > li a {
padding-right: 29px;
min-width: 1px;
padding: 0px 11px 0px 11px;
height: 48px;
line-height: 51px;
font-size: 16px;
color: #202020;
z-index: 9999;
}
.menu-item-language img.iclflag {
margin: 0 4px;
}
/* Menu Upgrade */
There’s a bit more if you are using RTL language…
-
This reply was modified 12 years by
virtualida. Reason: adding some image links to show what it should look like
When i select a featrured picture in a post and set the post template to ‘style 4 – full width’ there is no image above my post.
example: http://gyazo.com/c717b057e1553d7b283540508848995e
The other styles are fine.
JB
Hi,
You can add a paragraph tag in the header style 3 template file like this: http://screencast.com/t/6KRFgy6myfs
You will get this result: http://screencast.com/t/ZrPjW6CM3
Use the class "custom_logo_text" to style the text as you like via css. You can change the class if you want you can name it as you like.
Here is the paragraph i used in the example:
<p class="custom_logo_text">This is my text along Logo<p>
Thanks