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

Nicely done! Sometimes the cover of a book has to be spruced up so people will appreciate its content, despite the adage. 😉

TheMediumUTM
tagDiv Member

It doesn’t exist yet — insert these lines in the theme panel’s custom CSS section and it overrides the relevant styling from the theme files.

TheMediumUTM
tagDiv Member

They are indeed Newspaper-specific. Somewhere or other td support gave this solution to add to your functions.php file; I’m now using it successfully:

remove_filter('user_contactmethods', 'extra_contact_info');

TheMediumUTM
tagDiv Member

Finally, it might be breaking other shortcodes used in posts… it destroys posts with caption images and with galleries (works when Sharify is off, broken when Sharify is on). For that reason I’m turning it off for now, but somehow my posts were losing their entire WP content filters as posts if they have shortcodes: <p> tags go and the shortcodes are no longer expanded…

TheMediumUTM
tagDiv Member

Also, typo in your CSS?

.sharify
    {
        font-size: 14x;
        ...
    }
TheMediumUTM
tagDiv Member

Turns out it was a drop cap .td-post-text-content p:first-child:first-letter which I should have made .td-post-text-content > p:first-child:first-letter. (It was trying to do the first <p> in each div, I guess? Played around with it, some confusion. The divs are on different levels, for crying out loud…)

The icons are not working right now – just getting what look like glyphs. Guess the font family somehow isn’t being found, will check it out…

Oh, and the Facebook “Like” text should probably be “Share” since that’s what it does :p

TheMediumUTM
tagDiv Member

Just tried it out. The buttons themselves look great, but I had to deactivate it till the next update… you need to ensure you use unique style rules! It’s currently interfering with (and by being interfered with by) my styling of <p> tags.

Another important feature is disabling certain options, but I could live without that for now. :p

TheMediumUTM
tagDiv Member

Thanks, Steven. I did see that plugin but wasn’t a huge fan of the available styles. I’ll go download Mehedi’s from the other thread and test it now. 🙂

TheMediumUTM
tagDiv Member

I’ve used it with some success. The two plugins do work together, I found, but WP Super Cache makes development quite a pain because of how aggressively it caches (at least by default) and hence needs to be cleared to see your changes.

I was using W3 Total Cache without minifying Javascript or CSS, as per the docs here, but a profiling plugin showed that it was actually consuming a good deal of CPU and contributing to load time, so it was kind of self-defeating… Currently I’m using the free Cloudflare service with all performance settings turned on (although some people report problems with minifying), and simultaneously trying out the high-rated caching that comes as an option in Wordfence Security … yet to see what effect those have together.

So, uh, yeah, a bit messy. But anyway, WP Super Cache should be okay.

TheMediumUTM
tagDiv Member

Looks good…

Any movement yet? 🙂 I’m trying to replace various Jetpack functions, and it’s hard to find a free sharing plugin quite as satisfying as yours…

TheMediumUTM
tagDiv Member

Also, perhaps an ad-blocking browser extension is detecting those links for you?

TheMediumUTM
tagDiv Member

Ah, those are all very different and require a lot of identifying which elements to float right and in some cases actually reversing elements in template files (I believe). You may need custom work for that, although Lucian may say differently.

TheMediumUTM
tagDiv Member

Wow… Google thinks your site predates the Internet…

TheMediumUTM
tagDiv Member

I had the same problem. Here are my steps (I think these are the only two I used, so let me know if it doesn’t work).

1. I edited my single_template_3.php file and moved the <header> content, which originally looked like this:

      <header>
      ...
      </header>
    </div>
   </div>
</div> <!-- close the row from td_page_generator -->

To look like this:

    </div>
    <header>
    ...
    </header>
  </div>
</div> <!-- close the row from td_page_generator -->

Note that I also redid my subtitles using Advanced Custom Fields. The way I did it, I was able to put it under the title in the <header> section. I’m not sure whether yours will end up where you want them.

2. I styled the header using CSS:

.single_template_3 header {
  position: static;
  }

@media (max-width: 768px) {
  .single_template_3 header h1 {
    margin-top: 30px;
    }
  }

This was a few weeks ago now and I don’t quite remember how I determined those style rules, but anyhow, hope it works for you…

TheMediumUTM
tagDiv Member

I agree that they should have a bit more variety, but there are so many plugins out there that focus on that aspect that I don’t blame the team for not making it a priority. 🙂

TheMediumUTM
tagDiv Member

Via CSS’s :nth-child(#) selector. Enter this in the theme panel’s custom CSS section:

.sf-menu li:nth-child(2) a {
  color: #000;
}

Change #000 to the hex you want. I checked it on your site and it should work. If it doesn’t work, add an !important tag.

If you want to use the dark selector, add this too:

.sf-menu li:nth-child(2) a .sf-sub-indicator {
  background-image: url('/wp-content/themes/Newspaper/images/sprite/elements.png');
}
TheMediumUTM
tagDiv Member

Try an !important tag:

color: #444444 !important;

But if it’s conflicting with another one it still won’t work and you’ll have to find the source of the #fff…

TheMediumUTM
tagDiv Member

Yes, that’s to be expected, because the default settings are not what you want. Those include minifying CSS and JS, which will not work with this theme. Please read the docs or the dozens of forum posts on the subject… The plugin and the theme are not incompatible, and if you want the speed you’re looking for, you need a caching plugin!

There are other plugins that don’t even have options for minifying, such as WP Super Cache. But they’ll have other kinks to work out…

TheMediumUTM
tagDiv Member

Good thoughts. Note that the tool I linked to isn’t a plugin but a script you upload and run independently of (but designed for) WP. I believe I found it through the WP migration docs, which warned about changing URLs in a database when you migrate domains.

TheMediumUTM
tagDiv Member

Sorry, but you should without question use a cache. It will only mess things up for your visitors if you use the wrong settings. W3 Total Cache without minifying javascript or CSS is safe. This issue has been brought up and this solution recommended in Newspaper’s docs and the forum many times. 🙂 It will pretty much do a page cache, expiry headers, and basic (but highly necessary) compression.

W3 Total Cache can also be combined with a service like Cloudflare, which serves your site to visitors from its servers rather than your own. It speeds up delivery of some resources and helps with your server response time. (Pagespeed reports that your server responded in a massive 3.7 seconds.) I use this setup too.

A plugin like EWWW Image Optimizer will help with your optimize images problem. Note that you’ll want to do a one-time bulk optimization of your media library, which will take a long time, but after that it should just optimize on upload.

Feel free to ask for more details on the above steps. Once you try all of them, check your scores again. They will have greatly improved.

These are the steps that require little or no technical knowledge, but uf you still need more, start reading the excellent posts by Christopher Simmons and others in the sticky Pagespeed thread.

Best of luck!

TheMediumUTM
tagDiv Member

Ah, okay. I have AdBlock installed so I didn’t see it… and pausing it doesn’t seem to work, so hopefully someone else comes by to help. The official support folks are away over the weekend.

TheMediumUTM
tagDiv Member

What about it? The fact that you’ve set it to mega menu, or something about how the mega menu is supposed to look but doesn’t?

TheMediumUTM
tagDiv Member

Again, for option 3, you should use the tool I linked to. Doing it manually or using phpMyAdmin’s interface for querying are both risky for changing URLs in WordPress.

Consider this quote from a post linked from the tool’s site:

“I can’t emphasise enough that it’s important to handle serialised PHP correctly. If you don’t, then settings will go missing, fields will get corrupted, and your site runs a severe chance of not working on the new location. It’s a pain, but it’s important.”

Here you’re not technically moving to a “new location” but changing “http://…&#8221; to “https://…&#8221; carries the same risk, I believe. Chris can correct me if I’m wrong. 🙂

TheMediumUTM
tagDiv Member

No problem. 🙂

Viewing 25 posts - 76 through 100 (of 349 total)