Hi @neotrope
What do you exactly mean by
c) time to live, gzip settings
-
This reply was modified 9 years by
Erythros.
Quick question: what’s the best way to limit the css to a specific page?
Or, using the css editor inside the TD composer already does that? Asking because I don’t really want all the td_block_x to be affected by a change.
Perfect! Worked like a charm!
Thanks!
I’d rather not install plugins that do way more than they were supposed to, but use funcitons.php instead. If you could snippet me partially the code or the capability for this specific issue (views count only) I can do the rest :]
Thanks
Hi Catalin!
Here’s a Facebook embed: https://esportsmedia.ro/featured/yapzor-god/
Here’s a Youtube embed: https://esportsmedia.ro/featured/secret-vs-ig-quarter-highlights/
here’s another Facebook embed: https://esportsmedia.ro/featured/jeraxs-earth-spirit/
Both Facebook embeds are broken. I even added the related articles feature to make it clear that’s not the issue.
Thanks @ the source for the ad. Worked.
@the other issue, that place is not defined for the related videos/articles. Those are beneath the “Facebook/Twitter sharing buttons”. That’s justa bug where the embedded facebook videos have a default height set to 500px.
The bug doesn’t apply to other sources (like facebook or vimeo)
Hi Catalin,
Thanks for your follow up.
Regarding the first thing you mentioned, I am totally aware of what you explained me. What I was trying to say is that in my case, as I don’t integrate ads, this space here is empty. http://imgur.com/a/ChUeG
In your case, you have this box. https://imgur.com/a/ioH36 . Is it possible to have something else there, instead of the ad?
Lastly, in your screenshot and on demo, this space here http://imgur.com/a/BTzNZ does’t exist. But when I do a post, it does. Any clue why / how to get rid of it?
Edit: the empty space at the bottom is only for facebook videos. Doesn’t show up for youtube videos. Is this a bug?
Thanks!
-
This reply was modified 9 years by
Erythros. Reason: Adding extra info
Hi Catalin,
Thanks for your answer!
I got to this point.
The questions I have are the following:
1. Under the title there’s usually an AD. I don’t integrate (any kind of) ads on the website. Because of this, the right side of the video is always empty. Can I:
– a. Add a static image
– b. Add some [very short] descriptive text there?
The idea is to avoid having that empty space there. If that place can be filled with something else, please let me know
2. How complicated would it be to integrate support for Twitch clips? Is it possible doing so using a child theme? Would go the extra mile to do it myself if the integration is not crazy complicated for those not familiar with WP’s core. Here’s such an example. Twitch allows embedding the videos using a simple iFrame.
In articles & co, that’s easy to do, but I’d like to use the videos feature you provide and use along Facebook and Youtube videos also Twitch clips.
3. If I have a category called “videos” with 3 subcategories each looking similar to the one I linked at the beginnings of this post. Is it possible to ‘restrict’ the “related videos” displayed under the main video to a specific subcategory?
Thanks!
With Newspaper 8 this functionality is gone.
I am using child theme (provided by you) and until v8 everything was working as expected. It stopped working after the update.
I replaced the file in the child, i even tried making the change directly in the core.
Anything changed?
Thanks for the follow-up. I am already compressing all jpeg’s with the method presented in the official documentation add_filter( 'jpeg_quality', create_function( '', 'return 60;' ) ); . Some of the pictures we uploaded are PNG’s and these are not compressed. I am considering replacing all of them with jpeg’s, but I doubt it will make a difference.
Caesium seems cool, but there are over 15 contributors to the website, making it impossible to be used by others.
Wp Smush is cool, I wanted to use it for years, but the Pro version requires monthly subscription that’s quite expensive. Isn’t the free version kinda limited?
Thanks for taking the time to answer!
@drvarun5179
When you have the chance, could you make me some suggestions per what I could do more? Here’s my website: https://esportsmedia.ro/
Worth to mention: I can’t use CF’s Rocket Loader. It messes up everything for me, including the pictures and the menus (you cannot click on search anymore, for example).
Most of the things you mentioned should already be implemented, but I am still miles away from reaching 60% in google speed
Sidebar banner?
I am not sure if you are talking about my website :]
I did a short inspection now and should be fully https. Not sure if I missed something.
Could I reach out to you? (maybe using your website’s contact form?)
-
This reply was modified 9 years by
Erythros.
@drvarun5179
Thanks for your suggestions.
I am not using any ads, running an adfree website. Therefore, I am safe from the content load. I still didn’t compress the everything (css/js) more than the theme does by default and also didn’t do any custom loadings…yet.
Hi @drvarun5179
I used a while ago the Rocket Loader (while in BETA). It was a total mess for WordPress and after an email to Cloudflare’s support they asked me to disable the feature.
Is it now working as it should? Not messing up css, custom stuff etc ?
Well, I kinda changed the way the regular users work. Authors don’t have the rights to publish articles anymore therefore they can’t see the post templates as well.
For now, I changed the core files so that I works ok edit_published_posts, but I’ll need a more permanent solution.
The subscriber role was also altered to play the role of a proofreader….
One more question: I am trying to override the line you mentioned baove in content-metaboxes.php, but I tried using the child theme. It didn’t work, but I am not sure if I should keep in the child theme folder the same file structure (includes/wp_booster…) or duplicate the file and add it to the root of the child theme folder?
The change is working, but i am trying to avoid losing the changes I make after an update. For some reason, for this file I cannot override the functionality with the child theme.
Hi Simion,
Thanks for your answer. I was asking about the name of the capability so I can add it myself to those roles. I changed their behavior anyway, I just couldn’t find the name of the capability that those roles should have (the official Wordpres page doesn’t mention any templating capability).
Something like can_use_templates so I can add it like
function subscriber_xxx() {
$subscriber = get_role('subscriber');
$subscriber->add_cap('can_use_templates');
}
add_action('admin_init', 'subscriber_xxx');
-
This reply was modified 9 years by
Erythros.
Should anyone be looking for a similar solution, hacking the functions.php could do the trick.
// Stop WordPress re-ordering categories/taxonomies when selected
function stop_reordering_categories($args) {
$args['checked_ontop'] = false;
return $args;
}
add_filter('wp_terms_checklist_args','stop_reordering_categories');
Alright.
Topic can be closed.
Where would I have to add the snippet you provided above, taking into consideration I am using a child theme ?
It seems dangerous tho. Thoughts on it, Bogdan ?
That’s why I find it also quite weird. I double checked the ads section. Screenshot
Even running a speed test like tools.pingdom.com generated the same https://static.doubleclick.net/instream/ad_status.js
Installing the GD library for PHP on the server solved the issue. Topic can be closed.
Suggestion: Add the server side requirements to the installation guide. 🙂
Thanks!
Hello,
Thanks for the reply again!
I tried as you mentioned on our test environment. Nothing changed.
We sent you an e-mail in our mother tong for better communication. Hope we can sort this out as it’s quite important.
Thanks!
