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 :)
nf_prt
tagDiv Member

Hi there,

the loop you’re looking for is in loop.php file:
\wp-content\themes\Newspaper\loop.php

But in loop.php, you can only control the loop and count how many posts the loop is rendering, you can’t control the rendering there. You can control the rendering in the file @Lucian mentioned.

So you have the loop in one file and the rendering in the other. You can make the loop tell the render that some post is the 5th it finds, but that means you’ll have to make the function pass on a new variable.

I believe there’s another easier way:
– create a copy of td_module_9 and call it td_module_10
– edit line 15 of the new td_module_10, replace this <?php echo $this->get_no_thumb_class();?> for this td_mod_no_thumb (this will make td_module_10 = td_module_9 but with no thumbs)
– add a counter to the loop.php
– add if-test to the loop.php, something like, if counter==is-multiple-of-5 and the block to render is td_module_9, then render td_module_10 instead

this should do the trick!
I hope this helps, cheers!

EDIT: oh, I noticed now you want “4-no-thumbs + 1-thumb” and what I wrote will get you “4-thumbs + 1-no-thumb”, just swap the steps I wrote and you’ll get 1 thumb every 5 posts.

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

I don’t know a lot about Joomla but it doesn’t matter much which is superior, matters which one lets you make something superior. There’s more than the car, there’s also the driver and that’s why you are here trying to learn how to drive wordpress. I’m not defending wordpress over joomla, I just don’t want to say that something is worst when in reality I don’t even know it that well.

About images and thumbnails, yes they can get messy. If you don’t want image resizing (thumb generation) just go to options and set the sizes of thumbnails to 0x0 (zero), voilá, no more image generation. This has the downside of making your visitors download the original images all the time, even if all they are seeing is a thumbnail of them. Making thumbnails will create an image of 2KB to show a 100×65 thumbnail but people are free to serve a 70KB 700×357 image that will be displayed 100×65 anyway, downsized only pixel-wise and not KB-wise.

One thing though: You’ll see 3 thumbnail sizes in WP options but that doesn’t mean that your WP makes only 3 thumb regens, if some plugin or theme registers a new size, that new size will be created and you won’t see it in the options. Woocommerce “installs” 3 thumb sizes regenerations for example, and bam! suddenly you have 10000+ images in your media folder because every upload will be multiplied 6 or more times!

In that regard, this theme could get a bit of optimization. This theme is very beautiful but has lots of blocks, sliders, galleries and what not. So this theme registers a boatload of thumb sizes regens to fit all those blocks. After a while I figured out which blocks and sliders I prefer to use and those I don’t and so I commented out all those thumb regens I don’t use. This should be done, if possible, before running a plugin like thumbnail regeneration or all thumb sizes registered will be regenerated.

PS: support is always answering questions at the forum (during work time ofc, shown top right) but you can try e-mail, they are quick to respond, I wasn’t even their client yet and they answered pretty quick.

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

I believe it’s something in your end, your installation of chrome. Chrome has a lot of bugs regarding font rendering, some bugs are still around since 2011.

Try enabling/disable DirectWrite

1. Open Google Chrome
2. Open a new tab and enter the following in the address bar: chrome://flags/#disable-direct-write
3. Click “enable” to enable this switch, disabling the use of Microsoft DirectWrite by Google Chrome.
4. Close and re-open Chrome.

Check if you have PT Sans installed, it might be trying to install it and failing. Chrome on win7 with office 2007 or 2010 has some font bugs appear in chrome, also in the Gill Sans font.

nf_prt
tagDiv Member

It could be you are zooming with chrome. Next time you see the error don’t refresh, press cntrl and 0 (zero), which resets the zoom, and see if it solves it.

nf_prt
tagDiv Member

Hi

I checked out your site (it’s very nice by the way!) with 5 different browsers and one old mobile. Everything was right all the times.

Maybe it’s the things you use in the titles. I see you use +=?/ sometimes and it could be that you inadvertently used some combination that worked as code.

When you saw that happening, what did you do? You just refreshed the page and the error was gone? Or did you tried to change the title?

Cheers!

nf_prt
tagDiv Member

Hi,

in your functions file around line 1190:
/wp-content/themes/Newspaper/functions.php

<div class="td-gallery-slide-count"><span class="td-gallery-slide-item-focus">1</span> ' . __td('of') . ' ' . $nr_of_slides . '</div>

just change ‘of’ to ‘whatever-you-want’
(this will be gone after a theme update, remember to keep tabs on things like that)

hope this helps, cheers!

nf_prt
tagDiv Member

Hi,

you can add the following to the file /wp-content/themes/Newspaper/includes/modules/module_modifier/td_module_blog.php in line 200:


//do not show the featured image on post of these categories
if (in_category('SLUG-OF-CATEGORY')) {
return;
}

like this:
filter featured image by post category

-full reference: http://codex.wordpress.org/Function_Reference/in_category
-this does not hide thumbs in the blocks or categories listings, it hides the featd image when viewing the post itself
-this will be gone after a theme update, remember to keep tabs on things like that

hope this helps, cheers.

nf_prt
tagDiv Member

Unfortunately I have to keep an eye on the CPU, I hardly have traffic upsurges but I’m stuck with a cheap host for now :/ Newspaper theme is stellar but needs resources ofc and I already have other robust plugins like qtranslate-x, events calendar or woocommerce, so everything helps until I move to a better place or maybe host the server myself. For now I’ll just try to make the most out of available optimizations, and most are yours Chris! many thanks btw! I had no time to implement everything yet but I had some good readings and learned more thanks to you.

I like VC and the pages it lets me build but a “deploy mode” sounds like something that should be a given. I don’t have many pages nor build new ones that often so VC main job for me is to render pages. VC doesn’t have to handle the biggest portion of the site’s content (articles) but handles the most important perhaps, the homepage, so efficiency in rendering should be important I think.

nf_prt
tagDiv Member

Hi,

is TD-SHIM meant for Newsmag only? I installed it on Newspaper and some shortcodes didn’t get through like Chris S noted, plus the following ones:
[rev_slider_vc alias=”slider4″ el_class=”zindex”]
[vc_empty_space height=”32px”]
[vc_raw_js]/*content*/[/vc_raw_js]

Everything else was working fine (for me), this is interesting and looks promising, thanks!

nf_prt
tagDiv Member

Hi Lucian,

thank you for the quick response, that’s exactly what I needed as I don’t want to use Jetpack, just tested it successfully.

Thanks!

nf_prt
tagDiv Member

Hi,

this “solution” hides the waring from all users, including admins. Does this also hides all others warnings? I don’t want admins to miss warnings, only users who don’t have the permissions to act upon such warnings.

Viewing 11 posts - 51 through 61 (of 61 total)