Hi @williamslyd,
The easiest way, assuming you’re using the plugin with “Auto show” enabled, would be to wrap the secondary title placeholder inside an HTML tag. For that, go to “Settings” → “Secondary Title” and use the “Title format” field.
For more detailed information, please check out the official documentation site.
This could look like this:
<span class="secondary-title">%secondary_title%: </span>%title%
Using this heading as an example, “I Used to Think That Going to War Was Romantic” would be the secondary title and “It Seemed Like Another World.” the actual title.
I Used to Think That Going to War Was Romantic. It Seemed Like Another World.
Then, you simply add custom CSS code via WP’s Customizer tool. Then, you can add a rule that hides the secondary title on search pages (if you check the source code of your page, you’ll see <body class="...">
, and within, it shows what kind of page you’re currently on, in this case, search
)
This would be the CSS code:
body.search {
.secondary-title: {
display: none;
}
}
Give this a try, and let me know if it worked for you. If not, we’ll find another way, don’t worry ??
-
This reply was modified 3 months, 3 weeks ago by thaikolja. Reason: Added links