Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
r1kay
tagDiv Member

Quick question. Can I somehow easily copy all my header settings to the sticky header? I’ve edited the normal header but want to use many of the elements and styling on the sticky header. The sticky header still looks like the default from the template…

r1kay
tagDiv Member

Hi Simion,

I noticed my related posts are not filtered by latest. Is there a way to ad that sort option to td_module_single?

r1kay
tagDiv Member

Is there a possibility for you to test it on an older version so I don’t break my site when using it?

r1kay
tagDiv Member

Bump!

r1kay
tagDiv Member

Why am I not getting a reply but newer posts are?

r1kay
tagDiv Member

Here is a screenshot from page speed. I have gzip compression enabled via htacces (Compression test), but somehow my server can’t compress these files. Page speed results

This test from wegpagespeed shows some files are and some files aren’t being compressed: webpagespeed results

Can someone from tagDiv please give me an answer as why to these files won’t get compressed?

r1kay
tagDiv Member

Yeah I manually minified the js composer css (it’s the biggest file according to gps), didnt shave off that many. Pagespeed still says compressing (gzipping) the file would reduce it with from 600kb, from 750 to roughly 150. Most gzip testers say my gzip is enabled, but somehow GPS keeps telling me I could roughly shave of 2MB (!!) by gzipping all the css. So not all files al being compressed with my htacces rules. Im running a website with an older version of Newspaper on the same server with nginx and GPS doesn’t mention anything about compressing. Have no idea how to fix this…

Also, why do you prefer apache on plesk over nginx handeling php? I’m on a VPS (6gn ram) and my hosting provider said using nginx would reduce my pageload way more than apache. When I have over 2000 real time apache starts to flood the ram :/ That’s why I switched to nginx handeling PHP and configure WP Super Cache with it. Doesn’t break a sweat!

r1kay
tagDiv Member

Hey Chris, thanks for the quick reply, been a long time sincs we spoke. I know minifying isn’t the same as compressing. Google page speed says that compressing visual composer css version something something could save 750kb alone. I’ve run a webpagespeed test and it says that some files are gzipped, but a lot of then don’t.

I normally run wp super cache on plesk with nginx and have gzip compression enabled with some nginx rules, that works perfectly fine. But I’ve switched to apache and wp super cache with mod_rewrite rules and no matter what I try I just can’t get all the css and Javascript to get gzipped. Ive tried .htacces deflate rules and even tried a plugin to do the work for me.

I’m totally lost and think about switching back to nginx with my own additional config. What am I doing wrong?

r1kay
tagDiv Member

I have the same problem as you. Gzip enabled but google pagespeed still says i could reduce roughly 2mb by compressing css and javascript. Could anyone help me out?

r1kay
tagDiv Member

Thanks Andrei. But this only allows me to add the inline add. Where can i place the codes in order to make the content top and content bottom ad show up like in normal pages?

r1kay
tagDiv Member

Hi Andrei, I want all three ad spots (article top, inline and bottom) to automatically be inserted into the smart list post, just like normal posts. I use the latest version of the Newspaper theme. I know this is possible by adding code to the smart list templates. I use template 5 for smart lists and template 2 for normal posts. Could you please point me in the right direction as where to add which code?

r1kay
tagDiv Member

See post below.

r1kay
tagDiv Member

I’m on version 4.6.3. My Facebook and Twitter counters aren’t updating. Can you please provide me with the code I need to edit for both API’s to work?

r1kay
tagDiv Member

If you’re still not on the latest version (like me) then go to /includes/modules/module_modifier/ and comment out this line:

 //show only on the first page when we have posts with pages
        if (!empty($page) and $page > 1) {
           return;
        }

to look like this:

 //show only on the first page when we have posts with pages
        //if (!empty($page) and $page > 1) {
        //    return;
        //}

Use the search function to find the above code!

r1kay
tagDiv Member

Maybe your right Cris and should I post this to stackexchange. I thought I could give it a shot here since the themes view counter didn’t work for a long time and alot of people, inluding me, used the workaround as suggested by tagDIV. I hadn’t updated the theme in a while and thought maybe there are people who already ditched the two extra plugins and ran into the same problem as I have now. I can’t be the only one who want to use the theme’s counter, but doesn’t want to lose the views on older posts.

I’ll just wait and maybe someone can help me out. Chris, how did you fix this problem on your sites? Or are you still using the plugins as suggested by tagDIV?

r1kay
tagDiv Member

Hi Emil,

This is exactly how I used to update the views, but I really want to get rid of those two ajax plugins to count the views since the theme is able to do it correctly itself. So the theme reads the views from the custom field “post_views_count”, but my older posts have their view counts in the custom field “views”. I now want to use the theme’s counter, so to show the correct views on older posts I want to copy the values from the “views” custom field to the “post_views_count”. How do I do this? I want to use the theme’s counter so I can delete the two other plugins but I don’t want to lose the views on older posts!

r1kay
tagDiv Member

May I send it to you via email?

r1kay
tagDiv Member

Hi,

Is it possible to edit the offset for desktop and mobile? I’m still running V3.x and i’ve made the sticky menu fluently on desktop, but its not fluently for mobile… Is there any way to set different offsets?

r1kay
tagDiv Member

As for the custom field… Just create a custom field that says show_author and select true/false (below “Choice”) for field type. Make sure to check the custom field before publishing a post.

r1kay
tagDiv Member

I didn’t edit the loop_single file but the td_module_blog in /includes/modules/module_modifier/.

I’m still running Newspaper v3.x and not v4 because I didn’t had time to update the theme. I’m running a high traffic site and still don’t have a staging site to update the theme to v4 without interupting traffic :p Anyway, I think the post pages in v4 are still generated by td_module_blog so you should give it a shot!

I don’t know about making custom fields with that plugin, I just followed tagDiv’s recomandations on using that plugin for creating additional custom fields.

When opening td_module_blog.php, look for the line (somewhere around line 600 in my version) that says:

if (empty($hideAuthor)) {

            $buffy .= '<div class="author-box-wrap">';
                $buffy .= '<a itemprop="author" href="' . get_author_posts_url($author_id) . '">' ;
                $buffy .= get_avatar(get_the_author_meta('email', $author_id), '106');
                $buffy .= '</a>';

and add and get_field('customfieldname')

Like this (notice i used ‘show_author’ as custom field name):

if (empty($hideAuthor) and get_field('show_author')) {

            $buffy .= '<div class="author-box-wrap">';
                $buffy .= '<a itemprop="author" href="' . get_author_posts_url($author_id) . '">' ;
                $buffy .= get_avatar(get_the_author_meta('email', $author_id), '106');
                $buffy .= '</a>';

Make sure your theme settings are set to show author. When the custom field for showing author is checked in a certain post the author box will show up. Hope this helps!

  • This reply was modified 11 years by r1kay.
  • This reply was modified 11 years by r1kay.
  • This reply was modified 11 years by r1kay.
r1kay
tagDiv Member

You need to create a custom field (I use the Advanced Custom Fields plugin for that) called hide_author or show_author. The name doesn’t really matter. Let’s say you use show_author. The default setting now is that it won’t show the author unless the show_author box is checked when creating a post. By default, no author boxes are shown with this setting, but can be enabled for each post by check the new custom field box.

r1kay
tagDiv Member

Hi,

You haven’t replied on the duplicated articles when clicking on load more. Please provide support!

Thanks!

r1kay
tagDiv Member

Just updated the theme to the latest version, but the problem still persist! Thought they would fix this problem in the latest update but appearently they didn’t. Or is it just me? Can anyone else confirm that this workaround is still needed?

r1kay
tagDiv Member

Yeah like that, if I recall correctly the numbers were shown with a dot seperator and a customizable text like “views” or “times viewed” behind it. The text doesn’t show up anymore with this fix. So on post pages it only shows the number without the text “views”.

r1kay
tagDiv Member

I fixed it! Thanks Phil! Now another ‘problem’ occurs. The counts are not shown in the theme’s layout. For example, normally it would show 10.000 views. Now it will show 10000 vies, without the seperation dot for thousands. Any idea on how to fix this?

Viewing 25 posts - 26 through 50 (of 103 total)