- NewspaperInfinite Loading for Single Posts
- NewspapertagDiv Composer – Website Manager
- NewspaperFilters and sorting for taxonomies
- NewspaperFlex Block Settings Guide
- NewspaperHeader Builder
- TutorialsDefault Block Settings Guide
- TutorialsOffset Feature
- NewspaperUnique Articles
- NewsmagBlock settings tutorial
- NewsmagHow category settings work
- NewspaperBlock settings tutorial
My site is loading very slowly and sending out a bunch of 504 errors. Got this from my hosting company:
Just a quick update. I ran a search through your logs the top ten pages on which 504 errors were encountered. The results are below:
1009 higherperspectives.com POST /wp-admin/admin-ajax.php HTTP/1.1
625 higherperspectives.com GET /fall-asleep-fast/ HTTP/1.1
325 higherperspective.com GET /?stylesheet=custom&ver=4.0.1 HTTP/1.1
282 higherperspectives.com GET /being-alone/ HTTP/1.1
209 higherperspectives.com GET /gut-feelings/ HTTP/1.1
139 higherperspectives.com GET /mysterious-fireballs/ HTTP/1.1
127 higherperspectives.com GET /monk/ HTTP/1.1
119 higherperspective.com GET /2015/02/rituals.html?utm_source=cleo&ts_pid=2 HTTP/1.1
109 higherperspective.com GET /wp-content/plugins/anti-captcha/anti-captcha-0.3.js.php?ver=68dd09b9ff11f0df5624a690fe0f6729 HTTP/1.1
85 higherperspectives.com GET /shipping-container/ HTTP/1.1
The top result showed a large number of hits to admin-ajax. To get a little more information, I added the following line to your wp-config.php. Basically, this creates a text file in your wp-content folder that contains a record of all hits to your ajax file. I let that run for about five minutes. Please note: if you’re ever going to try this troubleshooting step from your end, please be sure to remove that line from your wp-config.php file you’re done. If it’s left on for long periods of time, it can create a VERY large file.
The following action was seemingly hitting admin-ajax up to several times a second:
[action] => td_ajax_block
Running a search for that action within your file system showed that was associated with your Newspaper theme. Here are the files in which it can be found which you can provide to your site’s developer or the theme developer:
wp-content/themes/Newspaper/includes/wp_booster/td_ajax.php
5:function td_ajax_block(){
88:add_action( ‘wp_ajax_nopriv_td_ajax_block’, ‘td_ajax_block’ );
89:add_action( ‘wp_ajax_td_ajax_block’, ‘td_ajax_block’ );
wp-content/themes/Newspaper/js/min/site.min.js
50:function td_ajax_do_block_request(a,c){var b=JSON.stringify(a);if(td_local_cache.exist(b))return td_block_ajax_loading_start(a,!0,c),td_ajax_block_process_response(td_local_cache.get(b),c),”cache_hit”;td_block_ajax_loading_start(a,!1,c);jQuery.ajax({type:”POST”,url:td_ajax_url,cache:!0,data:{action:”td_ajax_block”,td_atts:a.atts,td_cur_cat:a.td_cur_cat,td_block_id:a.id,td_column_number:a.td_column_number,td_current_page:a.td_current_page,block_type:a.block_type,td_user_action:a.td_user_action},success:function(a,
51:e,f){td_local_cache.set(b,a);td_ajax_block_process_response(a,c)},error:function(a,c,b){}})}
52:function td_ajax_block_process_response(a,c){var b=jQuery.parseJSON(a);jQuery(“.sub-cat-“+b.td_block_id).removeClass(“cur-sub-cat”);jQuery(“#sub-cat-“+b.td_block_id+”-“+b.td_cur_cat).addClass(“cur-sub-cat”);”load_more”==c||”infinite_load”==c?jQuery(b.td_data).addClass(“animated_xxlong”).appendTo(“#”+b.td_block_id).addClass(“fadeIn”):jQuery(“#”+b.td_block_id).html(b.td_data);!0===b.td_hide_prev?jQuery(“#prev-page-“+b.td_block_id).addClass(“ajax-page-disabled”):jQuery(“#prev-page-“+b.td_block_id).removeClass(“ajax-page-disabled”);
wp-content/themes/Newspaper/js/td_blocks.js
190: td_ajax_block_process_response(td_local_cache.get(current_block_obj_signature), td_user_action);
200: action: ‘td_ajax_block’,
219: td_ajax_block_process_response(data, td_user_action);
233:function td_ajax_block_process_response(data, td_user_action) {
wp-content/themes/Newspaper/js/full_compact/site.js
1663: td_ajax_block_process_response(td_local_cache.get(current_block_obj_signature), td_user_action);
1673: action: ‘td_ajax_block’,
1692: td_ajax_block_process_response(data, td_user_action);
1706:function td_ajax_block_process_response(data, td_user_action
We’ll keep looking into this to be sure that it’s those admin-ajax hits contributing to the 504s, but I wanted to pass along that information in the interim.
Help??
Hi,
The infinite pagination is created using ajax: http://screencast.com/t/oktDWdBK and it’s not the same as here: https://forum.tagdiv.com/topic/insert-ads-between-posts-in-latest-articles/
You need custom work for this and it is not an easy task. I suggest you hire a developer to do this for you as we cannot provide custom work at this time.
Thanks for the message!
Hi, I would like to implement infinite scrolling on single posts, is there a tested plugin for this? Will the embedded ads work as fine?
Thanks.
Just to add to this I’m using this shortcode <?php echo do_shortcode(‘[td_block_12 limit=”4″ custom_title=”More Stories” td_filter_default_txt=”All” ajax_pagination=”infinite”]’);?> at the bottom of the loop-single-2.php. I want to insert ads in this block after every 4 posts. Thanks
Hi Guys
Trying to insert ads after every 4 posts in block12 using the infinite loading, can you point me to the correct loop as I have tried adding the code as described here https://forum.tagdiv.com/topic/insert-ads-between-posts-in-latest-articles/. But the infinite load in block 12 doesn’t seem to use the same loop any ideas on how I can achieve this.
Thanks
Art
The problem with the header is a conflict.
Disable all plugins except those distributed with NewsMag. Re-enable your plugins one by one until the problem with the header returns. The conflict is disrupting most of the javascript on the site (search, theme social sharing popups, and probably the lazy load/infinite load on posts too, if it were enabled).
This may very well be a conflict caused by using NewsMag (built specifically for Visual Composer) with TCB.
Find the conflict and it may fix both issues. Won’t know how the excerpt issue is affected until that conflict has been resolved.
Good luck.
Hi! I like the infinite scroll function and I use it to fill empty spaces in the sidebar for the long posts. But I would prefer that infinite scroll would stop working when user get to the comment fields. Is it possible?
my website – teen-spirit.ru
Hi:
After activating the WordPress Related Posts https://wordpress.org/plugins/wordpress-23-related-posts-plugin/ the Newspaper theme panel doesn’t work well, for example: selecting Custom Typography and clicking on any option keeps showing the “loading” animation in infinite loop.
Is there anything that can be done to fix it?
Thank you!
There was a question – you can adjust the number of displayed posts?
Or add a feature infinite scroll?
-
This reply was modified 11 years by
lexsiks.
Hi there,
On my homepage, I have ‘block 7’ set up to display my older posts. However if you ‘load more’ posts when scrolling down, some of the posts repeat. Check it out:
In the ‘block 7’ settings, I have the following enabled:
– Sort order: Popular (last 7 days)
– Limit post number: 6
– Pagination: Infinite load
– Infinite load show ‘Load more’ after x pages: 2
Could you help me make it so that the posts don’t repeat?
Thanks!
Ben
Hi! There’s a Way to put ads instead post in infinite scroll settings?
something like that?
http://mashable.com/
Did it by adding this code to the end of single.php before the php closing tag :-
echo td_page_generator::wrap_start();
echo do_shortcode(‘[vc_row][vc_column width="2/3"][td_block3 sort=”random_posts” limit=”10″ custom_title=”Trending” ajax_pagination=”infinite”][/vc_column][vc_column width="1/3"][/vc_column][/vc_row]‘);
echo td_page_generator::wrap_end();
Why this css appear in template when view source, how to hide or remove it:
My site: http://www.baihocmoi.com/
<script type="text/javascript">/*<![CDATA[*/jQuery(document).ready(function(){var ajaxRevslider=function(obj){var content="<h2>THIS IS SOME TITLE</h2><br/>";content+="Type:"+obj.type+"</br>";content+="ID:"+obj.id+"</br>";content+="Aspect Ratio:"+obj.aspectratio+"</br>";data={};data.action='revslider_ajax_call_front';data.client_action='get_slider_html';data.token='1a59f464b3';data.type=obj.type;data.id=obj.id;data.aspectratio=obj.aspectratio;jQuery.ajax({type:"post",url:"http://www.baihocmoi.com/wp-admin/admin-ajax.php",dataType:'json',data:data,async:false,success:function(ret,textStatus,XMLHttpRequest){if(ret.success==true)
content=ret.data;},error:function(e){console.log(e);}});return content;};var ajaxRemoveRevslider=function(obj){return jQuery(obj.selector+" .rev_slider").revkill();}
var extendessential=setInterval(function(){if(jQuery.fn.tpessential!=undefined){clearInterval(extendessential);if(typeof(jQuery.fn.tpessential.defaults)!=='undefined')
jQuery.fn.tpessential.defaults.ajaxTypes.push({type:"revslider",func:ajaxRevslider,killfunc:ajaxRemoveRevslider,openAnimationSpeed:0.3});}},30);});/*]]>*/</script><!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]--><meta name="generator" content="Powered by Visual Composer - drag and drop page builder for WordPress."/> <!--[if IE 8]><link rel="stylesheet" type="text/css" href="http://www.baihocmoi.com/wp-content/plugins/js_composer/assets/css/vc-ie8.css" media="screen"><![endif]--><style type="text/css">img.latex{vertical-align:middle;border:none}</style><style>.block-title a,
.block-title span,
.td-tags a:hover,
.td-scroll-up-visible,
.td-scroll-up,
.sf-menu ul .current-menu-item > a,
.sf-menu ul a:hover,
.sf-menu ul .sfHover > a,
.sf-menu ul .td-menu-item > a:hover,
.td-rating-bar-wrap div,
.iosSlider .slide-meta-cat,
.sf-menu ul .current-menu-ancestor > a,
.sf-menu ul .current-category-ancestor > a,
.td-404-sub-sub-title a,
.widget_tag_cloud .tagcloud a:hover,
.td-mobile-close a,
ul.td-category a,
.td_social .td_social_type .td_social_button a,
.dropcap,
.td-forum-category-title .td-forum-category-name,
.td_display_err,
.td_block_mega_menu .td-ajax-next-page:hover,
.td_block_mega_menu .td_ajax-prev-page:hover,
.post-via span,
.td_wrapper_video_playlist
.td_video_controls_playlist_wrapper{background-color:#d93}.block-title,
.sf-menu li a:hover,
.sf-menu .sfHover a,
.sf-menu .current-menu-ancestor a,
.sf-menu .current-category-ancestor a,
.header-search-wrap
.dropdown-menu,
.sf-menu > .current-menu-item > a,
.ui-tabs-nav,
.woocommerce .product .woocommerce-tabs ul.tabs,.td-forum-list-head,.td-login-panel-title{border-color:#d93}.widget_price_filter .ui-slider-handle,
.td_wrapper_video_playlist .td_video_currently_playing:after{border-color:#d93 !important}.author-box-wrap .td-author-name a,
blockquote p,
.page-nav a:hover,
.widget_pages .current_page_item a,
.widget_calendar td a,
.widget_categories .current-cat > a,
.widget_pages .current_page_parent > a,
.td_pull_quote p,
.page-nav-post a:hover span,
.td-forum-last-comment-content .td-forum-last-author,
.td-topics-title-details a,
.td-posted-in
a{color:#d93}.woocommerce .button,
.woocommerce .form-submit #submit,
.widget_price_filter .ui-slider-handle,
.jetpack_subscription_widget input[type="submit"],
.pp_woocommerce .pp_close,
.pp_woocommerce .pp_expand,
.pp_woocommerce .pp_contract,
.pp_woocommerce .pp_arrow_previous,
.pp_woocommerce .pp_arrow_next,
.pp_woocommerce
.pp_next:before,
.pp_woocommerce .pp_previous:before,
#bbpress-forums
.button{background:#d93 !important}.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,.bbp-template-notice,.td-reply-list-header{border-color:#d93 !important}.woocommerce .woocommerce-message:before,
.woocommerce .woocommerce-info:before,.td-login-button{background-color:#d93 !important}.buddypress #buddypress div.dir-search input[type="submit"],
.buddypress #buddypress .message-search input[type="submit"],
.buddypress #buddypress .item-list-tabs ul li.selected a,
.buddypress #buddypress .generic-button a,
.buddypress #buddypress .submit input[type="submit"],
.buddypress #buddypress .ac-reply-content input[type="submit"],
.buddypress #buddypress .standard-form input[type="submit"],
.buddypress #buddypress .standard-form .button-nav .current a,
.buddypress #buddypress .standard-form .button,
.buddypress #buddypress input[type="submit"],
.buddypress #buddypress a.accept,
.buddypress #buddypress #activate-page .standard-form input[type="submit"],
.buddypress #buddypress .standard-form #group-create-body input[type="button"],
.post-password-required input[type="submit"]{background:#d93 !important}.buddypress #buddypress .groups .item-meta,
.bbp-forum-title:hover,
.td_login_tab_focus,
.block-mega-child-cats a.cur-sub-cat{color:#d93 !important}.page-nav .current,
.page-nav-post
span{background-color:#d93;border-color:#d93}.wpb_btn-inverse,
.ui-tabs-nav .ui-tabs-active a,
.post .wpb_btn-danger,
.form-submit input,
.wpcf7-submit,
.wpb_default,
.woocommerce .product .woocommerce-tabs ul.tabs li.active,
.woocommerce.widget_product_search input[type="submit"],.more-link-wrap,.td_read_more{background-color:#d93 !important}.header-search-wrap .dropdown-menu:before{border-color:transparent transparent #d93}.td-mobile-content .current-menu-item > a,
.td-mobile-content a:hover{color:#d93 !important}.category .entry-content,
.tag .entry-content,.td_quote_box{border-color:#d93}.td-timeline-block-title{background-color:#d93 !important}.td-timeline-wrapper-links{border-color:#d93 !important}.td-timline-h1-link
span{background-color:#d93 !important}.td-page-title .td-search-query{color:#d93}.td-sbig-title-wrap .td-sbig-title,
.td-slide-item-sec .td-sbig-title-wrap,
.td-big-grid-title .td-sbig-title-wrap{background-color:rgba(221,153,51,0.7)}::-moz-selection{background:#ffcb65;color:#fff}::selection{background:#ffcb65;color:#fff}.post header h1, .post header h1
a{font-family:Tahoma,Verdana,Geneva}.td_mod_mega_menu .item-details
a{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px}</style><script>var td_blocks=[];function td_block(){this.id='';this.block_type=1;this.atts='';this.td_cur_cat='';this.td_column_number='';this.td_current_page=1;this.post_count=0;this.found_posts=0;this.max_num_pages=0;this.is_ajax_running=false;this.header_color='';this.ajax_pagination_infinite_stop='';}
var td_ad_background_click_link="";var td_ad_background_click_target="";var td_ajax_url="http://www.baihocmoi.com/wp-admin/admin-ajax.php";var td_get_template_directory_uri="http://www.baihocmoi.com/wp-content/themes/Newspaper";var tds_snap_menu="";var tds_header_style="";var tds_mobile_swipe="swipe";var td_search_url="http://www.baihocmoi.com/search";var td_please_wait="Please wait...";var td_email_user_pass_incorrect="User or password incorrect!";var td_email_user_incorrect="Email or username incorrect!";var td_email_incorrect="Email incorrect!";var tds_more_articles_on_post_enable="";var tds_more_articles_on_post_time_to_wait="";var tds_more_articles_on_post_pages_distance_from_top="0";var tds_theme_color_site_wide="#dd9933";</script>
I noticed that infinite loading was a bit sluggish. It seems to only load once you scroll all the way to the bottom and sometimes the user has to was a few seconds for it to show the next set of posts.
Would it be possible to start the loading before you reach the bottom? like 600px away from the bottom or something.
Also any other tips on making it load faster?
thanks
Hi…
My last thread was quite messed up. So I created a new one with clear questions.
1.Infinite Load Pagination
How can I add a Text or Animated Symbol like this one http://imgur.com/Qb3GOvs when a user scroll down and wait for next page to load on Infinite Load pagination. (I do not want to use the Load More pagination option after X pages)
How can I reduce the time of next page load on infinite scroll? Currently when a user scrolls down to the bottom of the homepage to the last post then only it loads the another page. Is there any to make next page post earlier or faster.
2.Load More Pagination
When I activated the “Load More” pagination, even after going to the last post of the site it was showing the “load More” button. How to fix it?
How can I customize the font size, color & background of “load more” button?
3.Next/Prew Ajax
When I activated this pagination there was no buttons or any number on the homepage. How to fix it?
My site is http://www.magscroll.com
Please delete this thread: https://forum.tagdiv.com/topic/load-more-pagination/
Thanks!
Hi!
Adding one more question to it… I would like to know that how can I make the infinite load earlier or faster so that the use do not have to wait to load the posts till he reaches the last post.
Thanks!
Hi…
Is there anyway to add an icon or text in infinite scroll pagination when a use scrolls down and wait for the page to load?
Like the way when we click on the load more pagination it shows a blue animate loading… is there any way to add that in infinite pagination mode?
How can I change the font size and background color for load more pagination?
And currently there is one issue i am having with the load more is even when i reach the last post of it still show the load more button…. How can i fix that?
Thanks!
<!– Style compiled by theme –>
<style>
.td-menu-header .td-sp,
.sf-sub-indicator{
background-image: url(‘http://cdn.rnbjunk.com/wp-content/themes/Newspaper/images/header/elements-menu.png’);
}
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (-moz-min-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2) {
.td-menu-header .td-sp, .sf-sub-indicator{
background-image: url(‘http://cdn.rnbjunk.com/wp-content/themes/Newspaper/images/header/elements-menu@2x.png’);
}
}
</style>
<!– JS generated by theme –>
<script>
var td_blocks = []; //here we store all the items for the current page
//td_block class – each ajax block uses a object of this class for requests
function td_block() {
this.id = ”;
this.block_type = 1; //block type id (1-234 etc)
this.atts = ”;
this.td_cur_cat = ”;
this.td_column_number = ”;
this.td_current_page = 1; //
this.post_count = 0; //from wp
this.found_posts = 0; //from wp
this.max_num_pages = 0; //from wp
this.is_ajax_running = false;
this.header_color = ”;
this.ajax_pagination_infinite_stop = ”; //show load more at page x
}
var td_ad_background_click_link=””;
var td_ad_background_click_target=””;
var td_ajax_url=”http://www.rnbjunk.com/wp-admin/admin-ajax.php”;
var td_get_template_directory_uri=”http://www.rnbjunk.com/wp-content/themes/Newspaper”;
var tds_snap_menu=”snap”;
var tds_header_style=””;
var tds_mobile_swipe=””;
var td_search_url=”http://www.rnbjunk.com/search/”;
var td_please_wait=”Please wait…”;
var td_email_user_pass_incorrect=”User or password incorrect!”;
var td_email_user_incorrect=”Email or username incorrect!”;
var td_email_incorrect=”Email incorrect!”;
var tds_more_articles_on_post_enable=””;
var tds_more_articles_on_post_time_to_wait=””;
var tds_more_articles_on_post_pages_distance_from_top=”0″;
var tds_theme_color_site_wide=”#4db2ec”;
</script>
<script type=”text/javascript”>
/* <![CDATA[ */
var wpNotesIsJetpackClient = true;
/* ]]> */
</script>
</head>
<body class=”home page page-id-41827 page-template page-template-page-homepage-loop page-template-page-homepage-loop-php logged-in admin-bar no-customize-support td-full-layout wpb-js-composer js-comp-ver-4.4.2 vc_responsive”>
Now It’s better. but the color is blu. My question is, can i change colors in a easier way bypassing that panel?
Hi…
Sorry i did not explained my points.
1. I would like to make the background color of the text on slider non-transparent (http://imgur.com/1TI6xSm) currently it’s transparent blue.
2. The solution you provide me for the Link hover underline
.td_mod_wrap .entry-title a:hover{
text-decoration: none !important;
color:red;
}
Only changes the homepage title… the rest of the title such as slider and side bar are still having the underline when we take mouse pointer there…. I would like to change the underline to color hover on all of it.
3. Adding Loading More Stories Text http://imgur.com/hljefwa I would like to make something like this on infinite scroll so once the user reaches the footer it shows this text before infinite scroll load others posts.
Thanks!…
Hi Could You Please Help Me With These Queries
1. How Can Make the text background color strong? I mean i do not want it to be transparent.
2. How can I remove the underline from the post titles when we take the arrow on it… and change to color hover?
3. I would like to add text like “Loading More” in infinite scroll… some times the users internet is slow so it takes few seconds to load other posts to load… it would be great if i can add the text so that the users will know that there is more to go.
4. I tried to translate the Word “Latest Stories” of home page but it is not working from the Translation Option… Can you help me with it as well?
5. How can I add author image below post title on Post Page?
Please help me out with these queries…
Thanks
Hi Emil, when i load source of my site, i see a lot of codes coming from newspaper theme that actually i don’t use, and that are heaving codes on every page: view-source:http://www.rnbjunk.com/
<!– Style compiled by theme –>
<style>
.block-title a,
.block-title span,
.td-tags a:hover,
.td-scroll-up-visible,
.td-scroll-up,
.sf-menu ul .current-menu-item > a,
.sf-menu ul a:hover,
.sf-menu ul .sfHover > a,
.sf-menu ul .td-menu-item > a:hover,
.td-rating-bar-wrap div,
.iosSlider .slide-meta-cat,
.sf-menu ul .current-menu-ancestor > a,
.sf-menu ul .current-category-ancestor > a,
.td-404-sub-sub-title a,
.widget_tag_cloud .tagcloud a:hover,
.td-mobile-close a,
ul.td-category a,
.td_social .td_social_type .td_social_button a,
.dropcap,
.td-forum-category-title .td-forum-category-name,
.td_display_err,
.td_block_mega_menu .td-ajax-next-page:hover,
.td_block_mega_menu .td_ajax-prev-page:hover,
.post-via span,
.td_wrapper_video_playlist
.td_video_controls_playlist_wrapper
{
background-color: #6e61b0;
}
.block-title,
.sf-menu li a:hover,
.sf-menu .sfHover a,
.sf-menu .current-menu-ancestor a,
.sf-menu .current-category-ancestor a,
.header-search-wrap
.dropdown-menu,
.sf-menu > .current-menu-item > a,
.ui-tabs-nav,
.woocommerce .product .woocommerce-tabs ul.tabs,
.td-forum-list-head,
.td-login-panel-title
{
border-color: #6e61b0;
}
.widget_price_filter .ui-slider-handle,
.td_wrapper_video_playlist .td_video_currently_playing:after
{
border-color: #6e61b0 !important;
}
.author-box-wrap .td-author-name a,
blockquote p,
.page-nav a:hover,
.widget_pages .current_page_item a,
.widget_calendar td a,
.widget_categories .current-cat > a,
.widget_pages .current_page_parent > a,
.td_pull_quote p,
.page-nav-post a:hover span,
.td-forum-last-comment-content .td-forum-last-author,
.td-topics-title-details a,
.td-posted-in a
{
color: #6e61b0;
}
.woocommerce .button,
.woocommerce .form-submit #submit,
.widget_price_filter .ui-slider-handle,
.jetpack_subscription_widget input[type=”submit”],
.pp_woocommerce .pp_close,
.pp_woocommerce .pp_expand,
.pp_woocommerce .pp_contract,
.pp_woocommerce .pp_arrow_previous,
.pp_woocommerce .pp_arrow_next,
.pp_woocommerce
.pp_next:before,
.pp_woocommerce .pp_previous:before,
#bbpress-forums .button
{
background: #6e61b0 !important;
}
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.bbp-template-notice,
.td-reply-list-header
{
border-color: #6e61b0 !important;
}
.woocommerce .woocommerce-message:before,
.woocommerce .woocommerce-info:before,
.td-login-button
{
background-color: #6e61b0 !important;
}
.buddypress #buddypress div.dir-search input[type=”submit”],
.buddypress #buddypress .message-search input[type=”submit”],
.buddypress #buddypress .item-list-tabs ul li.selected a,
.buddypress #buddypress .generic-button a,
.buddypress #buddypress .submit input[type=”submit”],
.buddypress #buddypress .ac-reply-content input[type=”submit”],
.buddypress #buddypress .standard-form input[type=”submit”],
.buddypress #buddypress .standard-form .button-nav .current a,
.buddypress #buddypress .standard-form .button,
.buddypress #buddypress input[type=”submit”],
.buddypress #buddypress a.accept,
.buddypress #buddypress #activate-page .standard-form input[type=”submit”],
.buddypress #buddypress .standard-form #group-create-body input[type=”button”],
.post-password-required input[type=”submit”]
{
background: #6e61b0 !important;
}
.buddypress #buddypress .groups .item-meta,
.bbp-forum-title:hover,
.td_login_tab_focus,
.block-mega-child-cats a.cur-sub-cat
{
color: #6e61b0 !important;
}
.page-nav .current,
.page-nav-post span
{
background-color: #6e61b0;
border-color: #6e61b0;
}
.wpb_btn-inverse,
.ui-tabs-nav .ui-tabs-active a,
.post .wpb_btn-danger,
.form-submit input,
.wpcf7-submit,
.wpb_default,
.woocommerce .product .woocommerce-tabs ul.tabs li.active,
.woocommerce.widget_product_search input[type=”submit”],
.more-link-wrap,
.td_read_more {
background-color: #6e61b0 !important;
}
.header-search-wrap .dropdown-menu:before {
border-color: transparent transparent #6e61b0;
}
.td-mobile-content .current-menu-item > a,
.td-mobile-content a:hover
{
color: #6e61b0 !important;
}
.category .entry-content,
.tag .entry-content,
.td_quote_box
{
border-color: #6e61b0;
}
.td-timeline-block-title {
background-color: #6e61b0 !important;
}
.td-timeline-wrapper-links {
border-color: #6e61b0 !important;
}
.td-timline-h1-link span {
background-color: #6e61b0 !important;
}
.td-page-title .td-search-query {
color: #6e61b0;
}
.td-sbig-title-wrap .td-sbig-title,
.td-slide-item-sec .td-sbig-title-wrap,
.td-big-grid-title .td-sbig-title-wrap
{
background-color: rgba(110, 97, 176, 0.7);
}
::-moz-selection {
background: #a093e2;
color: #fff;
}
::selection {
background: #a093e2;
color: #fff;
}
a, .widget_recent_comments .recentcomments .url {
color: #6e61b0;
}
.cur-sub-cat {
color:#6e61b0 !important;
}
.blog-stack .sf-menu .current-menu-item a,
.blog-stack .sf-menu .current-menu-parent .current-menu-item a,
.blog-stack .sf-menu .current-menu-parent > a,
.blog-stack .sf-menu > li:hover > a,
.blog-stack .sf-menu ul li:hover > a,
.blog-stack .td-post-text-content .more-link-wrap:hover a,
.blog-stack .sf-menu ul .td_mega_menu_sub_cats a.cur-sub-cat,
.blog-stack .sf-menu ul .td_mega_menu_sub_cats a.cur-sub-cat:hover,
.blog-stack .td-mega-menu .block-mega-child-cats a:hover,
.blog-stack .td_mod_mega_menu:hover .item-details a,
.blog-stack .sf-menu .current-menu-ancestor > a,
.blog-stack .sf-menu .current-category-ancestor > a
{
color:#6e61b0;
}
.blog-stack .sf-menu > .current-menu-ancestor > a,
.blog-stack .sf-menu > .current-category-ancestor > a
{
color:#6e61b0 !important;
}
.blog-stack .sf-menu ul li {
background-color: #6e61b0;
}
.blog-stack .td-post-text-content .more-link-wrap a:hover {
outline-color: #6e61b0;
}
a:hover,
.widget_recent_comments .recentcomments .url:hover
{
color: #ed4fef;
}
.td-menu-header .td-sp,
.sf-sub-indicator{
background-image: url(‘http://cdn.rnbjunk.com/wp-content/themes/Newspaper/images/header/elements-menu.png’);
}
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (-moz-min-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2) {
.td-menu-header .td-sp, .sf-sub-indicator{
background-image: url(‘http://cdn.rnbjunk.com/wp-content/themes/Newspaper/images/header/elements-menu@2x.png’);
}
}
</style>
<!– JS generated by theme –>
<script>
var td_blocks = []; //here we store all the items for the current page
//td_block class – each ajax block uses a object of this class for requests
function td_block() {
this.id = ”;
this.block_type = 1; //block type id (1-234 etc)
this.atts = ”;
this.td_cur_cat = ”;
this.td_column_number = ”;
this.td_current_page = 1; //
this.post_count = 0; //from wp
this.found_posts = 0; //from wp
this.max_num_pages = 0; //from wp
this.is_ajax_running = false;
this.header_color = ”;
this.ajax_pagination_infinite_stop = ”; //show load more at page x
}
var td_ad_background_click_link=””;
var td_ad_background_click_target=””;
var td_ajax_url=”http://www.rnbjunk.com/wp-admin/admin-ajax.php”;
var td_get_template_directory_uri=”http://www.rnbjunk.com/wp-content/themes/Newspaper”;
var tds_snap_menu=”snap”;
var tds_header_style=””;
var tds_mobile_swipe=””;
var td_search_url=”http://www.rnbjunk.com/search/”;
var td_please_wait=”Please wait…”;
var td_email_user_pass_incorrect=”User or password incorrect!”;
var td_email_user_incorrect=”Email or username incorrect!”;
var td_email_incorrect=”Email incorrect!”;
var tds_more_articles_on_post_enable=””;
var tds_more_articles_on_post_time_to_wait=””;
var tds_more_articles_on_post_pages_distance_from_top=”0″;
var tds_theme_color_site_wide=”#6e61b0″;
</script>
Woocommerce, Buddypress, are some example and stuff like that. I cannot disable them from the theme panel, i need to know how can i customize the theme so use only the things that are really important for my site, without codes of stuff that are not working on it.
Do you have a guideline to have a lighter version of the theme, in order to load only the essentials?
Fabian
Hi,
@Rabattix – please provide the url so i we can take a look, if you don’t want to post it here send it via email at contact@tagdiv.com , sometime the pagespeed test reports render blocking even if the elements are moved at the page bottom.
@nelito – the other pagespeed improvements are way more important than moving js/css at the page bottom, also it won’t lower the cpu usage. To improve on that you have to reduce the number of queries (fewer plugins, fewer blocks on page, reduce the elements which use ajax requests/pagination like mega menus/load more/infinite load), use cache, set the browser leverage cache, eventually use MySQL Query Cache. If you’re unhappy with the theme please send an email at contact@tagdiv.com and we’ll come with a solution.
Thank you, Emil G.
Hi All,
Love the theme.
Quick question – how can I add the infinite load of a category to the bottom of the single post page? I would like the stories to continue to load as the users scroll down after reading a single post.
Thanks in advance.
C
Hi,
You can try to build you sidebar using VC elements and set the td-ss-row class to the row you want to behave as a smart sidebar.
You can find more info about this here: https://forum.tagdiv.com/topic/hitting-a-roadblock-to-achieve-infinite-scrolling-with-smart-sidebar/#post-28972
Thanks
Hi,
1. Like I said, we will consider this and implement it in future updates.
4. Try it and let me know how it goes, I have also checked this and haven’t found any issues.
5. Use css to change it like this: http://screencast.com/t/8UGA2cYKt60
.meta-info {
font-family: "adobe-caslon-pro";
font-size: 18px;
}
6.1 Please use this custom css: http://screencast.com/t/skCK9Q9h
@media (min-width: 768px) and (max-width: 1023px) {
.vc_wp_text.wpb_content_element.class123{
display: none;
}
}
6.2 Looks good now: http://screencast.com/t/85f4BB4Rl
The smart sidebar should work when using the slider on the same page: http://demo.tagdiv.com/newsmag/homepage-big-slide/
Try to build you sidebar and add this custom class like I suggested here: https://forum.tagdiv.com/topic/hitting-a-roadblock-to-achieve-infinite-scrolling-with-smart-sidebar/#post-28972
Thanks
