I want to change the heading in related posts area

Posted in: Newsmag
Post count: 9

Hi, the default setting in related articles in each post marks heading 3, but how could I change them to heading 4? I went into theme panel but it there’s option to change, can anybody help me out, I think it could relate to coding

Thank you for reading this, nice day!

Post count: 35449

Hi Teikey,
This is because the Newsmag theme has the H3 element fore each block on title.
The parent file for all modules is wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php https://i.imgur.com/y00sjFn.png and the module for that block is this one – wp-content/plugins/td-composer/legacy/Newsmag/includes/modules/td_module_related_posts.php (the title is call on this line – https://i.imgur.com/fLCbYwy.png).
Thank you!

Post count: 9

So is there any way that I could change it into h4 for the related articles block?

Thank you!

Post count: 35449

HI,
What needs to be done is to modify this file – wp-content/plugins/td-composer/legacy/Newsmag/includes/modules/td_module_related_posts.php on line 25 whet is the get_title replace the line code with this one – https://pastebin.com/cv0W58QM
This should change the H3 in H3 for related posts block.
Thank you!

Post count: 9

I how can i know

Post count: 9

Hi, I’ve been around and missed your instruction, can you show that again?

I’m on line 25 with get_title
What do I need to add or change? Thank you!

Also, In my “about us, contact us, and authors” pages. I can’t find a way to change the Heading, I automatically set my Logo with the alt of my homepage as a heading, which makes a duplicate title.

Post count: 35449

Hi,
You need to replace the line code from line 25 with the code from the above link, or you can manually make the changed by adding between the (”,’H4′).

If the mentioned pages (“about us, contact us, and authors” ) were made using tagDiv Composer, then you can edit the page with this builder, select the elements and look after the Title sag (SEO) – https://i.imgur.com/kK4pP4B.png

Thank you!

Post count: 9

When it comes to (“about us, contact us, and authors page”) Tagdiv composer can’t reach to edit this one, the Heading 1 in the logo. I want to remove the heading in the logo) https://imgur.com/a/tDpAzIY

When it comes to heading in related posts, I’ve edited line 25 code, like this: https://imgur.com/V3z16y8

but it didn’t work, and caused an error, can you help me to write the code line correctly?

Thank you so much

Post count: 35449

Hi,
“When it comes to heading in related posts, I’ve edited line 25 code, like this: https://imgur.com/V3z16y8” – this is because it was not correctly edited, you have there 2 tips of commas and you have only one parameters, not 2 like in my example, the line should be like this – https://i.imgur.com/aiDvPnH.png
The H1 is set by default on logo, but on pages and posts that have set the title it will be removed from logo and use on post/page title. In this case you need to set for page template this option – https://i.imgur.com/716seCA.png
Thank you!

Post count: 9

Hi, thank you, the heading on “about us” page is fixed.

But as for heading in related posts, I’ve pasted the exact code: https://imgur.com/soUtOQj

But it still shows errors on the posts:

https://imgur.com/RLtYu5D
https://imgur.com/IKuvvDl

Post count: 9

And also, I’ve embedded Google Maps HTML code in the footer, and it fits nicely on the desktop screen. But when it comes to mobile screens, it slop and does not fit at all. Could you tell me how to adjust to make both versions fit?

Post count: 35449

Hi,
Please use comes like this https://i.imgur.com/56913lQ.png those from your screenshot looks strange, copying the code from above reply can be a problem, please copy the code from here -> https://pastebin.com/cv0W58QM (or if you want you can contact us via email and I can set them for you).
For the problem with the Google Maps HTML, I think that you have in that code a specific size, what needs to be done is to use a css to adjust it for mobile, for this it will be need a link to your website to can investigate and make the code you need.
Thank you!

Post count: 9

I may want to contact via email, please send me your email!

Post count: 35449

Sure, please contact us at contact@tagdiv.com, also, please include the link of this topic to can identify you.
Thank you!

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