Backsplashes are removed as escape characters

Posted in: Newspaper
Post count: 12

Hello,
I have a mathematics blog and I use mathjax to render math on it. But the problem is when I open any post, the title in the breadcrumbs removes backsplashes due to which mathjax is not able to render math equations correctly. So please help me to preserve backsplashes in breadcrumbs. I need guidance on this to change some settings or add some function in theme ao that my problem can be resolved. Hope you understand my problem and do the needful ASAP. Thank you ?
Site URL: http://www.mathematicsly.com

Post count: 21065

Hello @Nareshpatkare !

In order to avoid misunderstandings, please provide more information(screenshots/video) about what exactly you need to achieve or what is the issue there.

A solution for sending a screenshot/video is this:
Download, capture, and send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link; paste it here.

Thank you!

Post count: 12

Actually I run a mathematics website named “https://mathematicsly.com/”.
For mathematics to be rendered, I use a simple mathjax plugin. And you know, mathjax uses latex code to build math equations on webpages which involves “\” backslashes in most of the code. Newspaper theme/plugin vanishes backslashes as escape characters. Due to which math equations are not correctly rendered.
Main problem was in the homepage which I solved by using the following function code to preserve backslashes…

“function replace_backslashes_in_title($title) {
// Replace backslashes with the HTML entity ‘\’.
$title = str_replace(‘\\’, ‘\’, $title);

return $title;
}
add_filter(‘the_title’, ‘replace_backslashes_in_title’, 10, 2);”

Using the above code solved the problem on the homepage.
But the title in the breadcrumbs vanishes backslashes still and hence the maths in breadcrumbs is not properly rendered.

See screenshot: https://app.screencast.com/eDlsw5RhFIWeC

Post count: 21065

Hello @nareshpatkare !

We will take into consideration your query.
I will add this bug on our investigation list!

Thank you so much for understanding!

Post count: 12

Thank you so much.
I hope this problem will be solved ASAP

Post count: 12

It has been 18 days past since I raised the query but no solution from your side. How long should it be taken to solved? waiting for the solution from your end

Post count: 21065

Hello @nareshpatkare !

I have no ETA. If our developers find something that can be updated in our theme, then they will add it in the next updates.

Thank you for understanding!

Post count: 12

I have another issue with coding. I use mathjax to render maths on my website. I want to put “MathJax.typesetPromise();” code in appropriate plugin file editor which creates live search in theme lack of which mathjax doesn’t understand that there is some mathematical equation. See screenshot for more information and help me to put this code in appropriate place.

Screenshot: https://app.screencast.com/TruCYISvi97UF

Thank you.

Post count: 21065

Hello @nareshpatkare !

Unfortunately, all javascript files from our theme get combined into a bigger, minified javascript.
This will require custom work, which is not covered by the support team.
For customization and other services, you can contact our custom work team here: https://tagdiv.com/premium-customization-services/.

Thank you for understanding!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.