P.S. In my opinion it’s not 100% clear in that tutorial that the module ID has to end in an integer. I knew it had to be unique, but not that it had to be numerical. I discovered this by encountering a bug where the theme panel does not assign a data-option-value to the new icon, which means it has the appearance of saving the selection but does not really do so, leading to very confusing results!
Thanks! It does work. Now to purge some caches…
I didn’t want to go to the bother of disabling, emptying, and purging everything, so I just manually switched the featured image back to the non-video one and am satisfied with the results. After all, it still puts the little play icon on the photo, which is great. Thanks for your help!
It didn’t help, as far as I can see. :/
For an alternative solution… Is there a way to make video posts use the featured image in the big slider? I don’t mind making a PHP edit.
Hmm… I installed the plugin and used the individual thumb regen (from the Media page in list view), and it says it successfully resized that thumb, but the problem persists. I’m hesitant to regen all thumbnails since the individual one didn’t work. When I inspect element on that thumb, I get <img width="480" height="360" ...>, but when I do it on the other big slide after scrolling to the right, that tag has 745 and 483. Is the tag using the wrong image size somehow?
Ah, okay. Thank you!
Quick question: can td_wordpres_booster.php be edited in a child theme?
*keeps eyes open*
Happy holidays, Chris! I realized I hadn’t been around in a while (either) and decided to check back, apparently with perfect timing.
It’s been a real pleasure sharing this forum space with you, and of course the TD team. I’ve learned a huge amount from asking and reading in the great company here.
All the best doin’ the stuff you need to do.
Luke
(Quick note: after checking share.america.gov just now, I found the Twitter and Facebook links on images were both working fine. Hopefully you’ve resolved your problem!)
First thing to do is use plugins like WP Query Monitor and P3 (Plugin Performance Profiler) to see where your heavy hitters are. Post the results and we (i.e. official support and random users like me) can be of more help. π
Luke
-
This reply was modified 11 years by
TheMediumUTM.
Theme panel -> custom typography -> menu font. Uppercase is under “text transform”.
.post .author-box-wrap {
margin-top: 0px;
}
I’ve run into this too. I create a similar function named child_… and have been lucky enough that all references to the functions are in child-editable files, so I just make them use child_… instead.
In child_… I usually just catch the special case I have in mind and then pass everything on to the parent function again, to prevent having so many revisions in the child theme that it not only survives updates but is impervious to them. :p
Thank you! I’ll let you know how that goes and if I need any more help. π
These are elements on the home page β a page like any other, except that it’s identified in the WordPress “reading” settings as your static front page.
Please follow these docs: https://forum.tagdiv.com/homepage/
Luke
You can minify html safely. For CSS and JS, you could turn on manual minify mode in W3TC and input each individual script to minify, leaving out the ones that cause errors (i.e. theme ones). Pagespeed also gives you the full URL to each one that it identifies. This is a bit of a pain, but at least you clear away the Pagespeed messages. π
Note that Pagespeed will also complain about external ones, and I believe there’s nothing you can do about that.
Luke
Note to above: preview links won’t work for public sharing; use a published link if you want others to access it. π
Whoops, yeah, span should have been closed before div! And I deleted that single quote accidentally. π Good catch.
Yup, font was an issue on my end. Using Sharify now and it looks good! Just looking forward to options for which / in what order / whether to have counters on… but I can live without them for now. π
Thanks for the plugin!
This is what my solution in functions.php looks like (adapted from a stackoverflow thread). It looks like this: http://themedium.ca/arts/visual-studies-art-through-snail-mail
I removed the icon code here because you don’t have the assets or the CSS on your end, but if you want it, just ask.
// Show captions on template 4
// adapted from stackoverflow.com/questions/13850313/how-to-add-a-featured-image-caption-in-wordpress
function get_template4_caption($post) {
$thumbnail_id = get_post_thumbnail_id($post->ID);
$thumbnail_image = get_posts(array('p' => $thumbnail_id, 'post_type' => 'attachment'));
if ($thumbnail_image && isset($thumbnail_image[0]) && $thumbnail_image[0]->post_excerpt) {
return '<div class="template_4_caption"><span class="td-block-author"> . $thumbnail_image[0]->post_excerpt .'</div></span>';
}
}
In order to have it below the image, the function is called in single_template_4.php in each of the three sidebar cases, e.g. the last line here:
<?php
// we check the sidebar position and for each one we have a different case
switch ($loop_sidebar_position) {
default: // sidebar right - the default sidebar position
echo td_page_generator::wrap_start();
?>
<div class="span8 column_container td-post-content" role="main" itemprop="mainContentOfPage">
<?php echo get_template4_caption($post); ?> <!-- new -->
Note that you might still want to add some CSS styling for template_4_caption or whatever classes you choose to use, e.g. some margin-top to distance it from the image.
If you wanted it on the image like the rest of the meta info, you would have to adjust this placement and the styling.
(Or in any widgetised sidebar section in the backend editor if you want it in the page itself!)
Thanks.
For anyone considering it: MaxCDN has been somewhat disappointing :/
Getting better! No longer breaks those posts.
Still having trouble with my icons, but the newspaper glyph font is also having trouble appearing on my site lately, so it might not be the plugin.
Option to disable counters to save loading time for those of us who don’t really care for counters would be great π
π