thaikolja
Forum Replies Created
-
Forum: Plugins
In reply to: [Secondary Title] Function is_search was called incorrectlyHi again, @soobahkdo.
I’ve implemented it a patch for this. Can you please do me a favor and check if that solves your issue?
Here’s the download link for the alpha version:
https://gitlab.com/thaikolja/secondary-title/-/archive/main/secondary-title-main.zip
Forum: Plugins
In reply to: [Secondary Title] Secondary Title may conflict with WP Show Posts pluginYes, I’d like to see the copied infos. Put it on paste.ee or something.
Forum: Plugins
In reply to: [Secondary Title] Secondary Title may conflict with WP Show Posts pluginLog in to your Dashboard, and go to Tools -> Site Health. There should be a button to export the results.
Forum: Plugins
In reply to: [Secondary Title] Secondary Title may conflict with WP Show Posts pluginAh, I understand the issue now. Can you give me the text version of your Site Health results so I can see the details of your WP installation? I need to be able to replicate the code in order to get to the bottom.
Forum: Plugins
In reply to: [Secondary Title] Secondary Title may conflict with WP Show Posts pluginI marked the issue as resolved since I gave you the instruction to use CSS to hide the secondary title. You only have to narrow it down enough so that it doesn’t apply to other parts.
You can input the CSS on the plugin’s settings page in the field “Title format” or – better practice – wrap it in a
<span>
and give it a class, like<span class="secondary-title"
.Then you can use, for example, the Customizer’s CSS option to play around until it fits.
I’d love to fix it for you. But that requires some sensitive credentials, which is not allowed in this forum, so most support is simply eliminating potential errors until it’s found.
Please also note that most plugin authors also have daytime jobs. Maintaining a plugin or theme can be a lot of work, depending on which way WP goes. Please keep that in mind when asking for fast, free support.
Forum: Plugins
In reply to: [Secondary Title] Function is_search was called incorrectlyGood spot! Feel free to add a pull request to this (not yet updated) to the repository on GitHub if you’re faster.
Forum: Plugins
In reply to: [Secondary Title] Secondary Title may conflict with WP Show Posts pluginYes, I see the
<span>
, and it does have the classsecondary-title
. Now the last thing is adding CSS rules where you’d like to suppress the title.Forum: Plugins
In reply to: [Secondary Title] Secondary Title may conflict with WP Show Posts pluginNo problem, @nealumphred, that’s what support is for ??
Unfortunately, I can’t give you more than code snippets for you to try since sharing sensitive data and communication outside this forum not allowed.
The code itself looks like valid HTML markup; I see no problems in there. With this setting and the option “Auto show” enabled, it should replace every instance of your post/page titles with the given markup and its placeholders. I hope that makes sense?
So, you referenced it in the title format. But we also need to assign it a class, because you don’t want this effect or event the entire secondary title. So:
%title% <h1><i><span class="secondary-title" style=”font-size:80%;”>(%secondary_title%)</span></i></h1>
Notice the
class
attribute that I’ve added.Now we can remove the inline
style="..."
– if we want. Instead, it’s good practice to separate this. I’d use your themes Customizer. You can access the Customizer when you log in, go to your homepage and select “Customize” from the admin bar on the top.Open the custom CSS section and try this:
.single .secondary-title { display: none !important; }
Does this clear the role of CSS up a bit?
Forum: Plugins
In reply to: [Secondary Title] Secondary Title may conflict with WP Show Posts pluginHi,
I’d need a few more details to tell you exactly what to do, but it sounds like you can easily solve this with CSS.
On the ST settings page, create a title format with
<span>
s with a class.%title% <span class="secondary-title">%secondary-title%</span>
Then, you simply use the CSS property
display: none !important;
.Since you don’t want this behavior everywhere, use WP’s
<body>
tag and narrow your CSS down to the classes it gives you.Oh, the reason for this, if you’re interested, is your theme. Many themes override filters (which ST uses) or have their own function that escapes HTML characters.
Let me know if that worked for you!
Forum: Reviews
In reply to: [Secondary Title] Secondary Title works as advertised!Hi @nealumphred,
Thanks for your nice words. Even though it’s just a short summary that shows you’re happy with it, it still means a lot to me. As a developer, there is, unfortunately, no real appreciation culture for what developers do for free and dedicate their time to.
So, that being said: Any recommendations to improve Secondary Title? I’d love to hear your input if you have any.
Forum: Plugins
In reply to: [Secondary Title] Can’t add it to the ASTRA themeSlow down, tiger ?? Let’s approach this step by step.
So, you’re using Astra but it doesn’t display the secondary title? If yes, then why are you sending me a
header.php
?The easiest way to get to the bottom is t
o show me your admin area(no, this is not allowed, so don’t do this) to show me where you’d like the secondary titles to appear on your website via screenshots.- This reply was modified 2 years, 1 month ago by thaikolja.
Forum: Plugins
In reply to: [Secondary Title] How to adjust line height?Just so that we’re talking about the same thing: You can’t change the line height of the secondary title on single post pages; this only appears on small devices.
Am I correct?
- This reply was modified 2 years, 1 month ago by thaikolja.
Hi @nealumphred,
Thanks for using my plugin!
To make things easier and faster, could you please come up with a numbered list of how I can reproduce your problem with a fresh WordPress installation?
Thanks!
- This reply was modified 2 years, 2 months ago by thaikolja.
No problem, that’s what I’m here for ??
And if your website is fully customized, you don’t have to be afraid of updates breaking anything. Your theme will not ask you to update the version number in the main plugin .php file to a higher, fictional version, e.g.,
3.0.0
or something. But this is only necessary if your theme has the same name/slug as one that’s already been hosted on www.remarpro.com.The plugin itself can and should be updated. Unfortunately, there’s always a very slight chance that the rollout of a new version can cause WP installations in very old, out of date websites. That includes WP core as well as plugins. Keep ’em fresh!
Have I answered everything, or did I miss anything? If you’re happy with what I offer, I’m always glad for a nice review
</img>
- This reply was modified 2 years, 2 months ago by thaikolja.
Wow, those are good news! Glad you could figure it out so fast.
Regarding your fear: As long as you have Secondary Title installed and activated, nothing should go wrong. Unfortunately, some (child) themes like to tinker with the
get_title()
filter and overwrite the title format. In this case, the only way to get it solved is by deactivating “Auto insert” and using PHP at the locations where you’d like title to be displayed.To make sure your site won’t break without the plugin, don’t forget to set up some fallbacks. E.g., this:
if(defined('SECONDARY_TITLE_VERSION')) { // We can now safely assume that Secondary Title is working }
To be honest, I don’t see the need for any urgent updates at the moment. I’ve been thinking about rebuilding it, v3, entirely from scratch and with faster and more reliable technology. But this is, so far, just an idea with no concrete plans yet (feel free to throw in some ideas).
In the case that the developer, I, dropped out: I’m a helpful guy. If you email me with a bug or small adjustment, I love helping, even if the plugin has reached its end of life and won’t receive another version cycle.
In short: Don’t worry. You don’t have to remove anything. Just download Secondary Title as plugin, activate it, fine-tune it in the plugin’s settings page under “Settings”.
One thing you should know: Even if Secondary Title is destroyed or whatever: You can still display the titles. Use this fallback code:
if(!defined('SECONDARY_TITLE_VERSION)) { $post_id = get_the_ID(); // No Secondary Title active, display with alternative method function get_secondary_title() { return get_post_meta('_secondary_title', true); } }
By the way, all code here is untested, so maybe you run into a syntax error because I forgot to close an if statement or so, but you can easily fix it.
So, the important thing to remember: Your secondary title is saved inside a post as a custom post meta named
_secondary_title
(note the underscore in front).