Home User profile
tagDiv Member
The Medium is the student newspaper of the University of Toronto Mississauga. We use tagDiv's excellent Newspaper theme, with some style and under-the-hood functionality customization.
TheMediumUTM
tagDiv Member

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!

TheMediumUTM
tagDiv Member

Thanks! It does work. Now to purge some caches…

TheMediumUTM
tagDiv Member

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!

TheMediumUTM
tagDiv Member

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.

TheMediumUTM
tagDiv Member

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?

TheMediumUTM
tagDiv Member

Ah, okay. Thank you!

TheMediumUTM
tagDiv Member

Quick question: can td_wordpres_booster.php be edited in a child theme?

TheMediumUTM
tagDiv Member

*keeps eyes open*

TheMediumUTM
tagDiv Member

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

TheMediumUTM
tagDiv Member

(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!)

TheMediumUTM
tagDiv Member

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

TheMediumUTM
tagDiv Member

Theme panel -> custom typography -> menu font. Uppercase is under “text transform”.

TheMediumUTM
tagDiv Member
.post .author-box-wrap {
  margin-top: 0px;
}
TheMediumUTM
tagDiv Member

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

TheMediumUTM
tagDiv Member

Thank you! I’ll let you know how that goes and if I need any more help. πŸ™‚

TheMediumUTM
tagDiv Member

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

TheMediumUTM
tagDiv Member

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

TheMediumUTM
tagDiv Member

Note to above: preview links won’t work for public sharing; use a published link if you want others to access it. πŸ™‚

TheMediumUTM
tagDiv Member

Whoops, yeah, span should have been closed before div! And I deleted that single quote accidentally. πŸ™ Good catch.

TheMediumUTM
tagDiv Member

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!

TheMediumUTM
tagDiv Member

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.

TheMediumUTM
tagDiv Member

(Or in any widgetised sidebar section in the backend editor if you want it in the page itself!)

TheMediumUTM
tagDiv Member

Thanks.

For anyone considering it: MaxCDN has been somewhat disappointing :/

TheMediumUTM
tagDiv Member

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 πŸ˜€

TheMediumUTM
tagDiv Member

πŸ™‚

Viewing 25 posts - 51 through 75 (of 349 total)