Post by eisteddfod_37 » Sun Jan 16, 2022 11:54 pm

Afternoon,

Sorry this is probably going to be the stupidest questions ever asked on here but I've spent the past few hours searching and trying to work it out and I'm struggling.

Code: Select all

{{title}}
Inside our custom .twig header template we're going this to show the page title within the page. However the above code take the Meta Tag Title. Is there anyway if showing the information page or product title, the one above the Description box using the same format/shortcode?

Thanks

Andy

Newbie

Posts

Joined
Fri Jul 27, 2018 12:07 am

Post by by mona » Mon Jan 17, 2022 1:05 am

It is a MVC[L] structure.
You seem to be quite capable of doing this, so just look at the files, find what you need and edit your custom header to take the information you want.

http://docs.opencart.com/en-gb/developer/module/
https://code.tutsplus.com/tutorials/fro ... -cms-21627

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by eisteddfod_37 » Mon Jan 17, 2022 1:28 am

But that is the question.

I know where to edit it, I'm not sure what I need to edit it to.

Newbie

Posts

Joined
Fri Jul 27, 2018 12:07 am

Post by straightlight » Mon Jan 17, 2022 1:46 am

eisteddfod_37 wrote:
Mon Jan 17, 2022 1:28 am
But that is the question.

I know where to edit it, I'm not sure what I need to edit it to.
OC version. Unless an extension shows otherwise from the Marketplace, the same short code cannot be used for dynamic titles inside the same page content. Different array keys must be used based on the titles you'd want to display in this scenario.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by by mona » Mon Jan 17, 2022 2:02 am

Glad to see you have this resolved
Now that this is solved it is usual to add [SOLVED] to the title.

Thanks

Attachments

Screen-Shot-2022.png

Screen-Shot-2022.png (99.24 KiB) Viewed 340 times


DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by eisteddfod_37 » Mon Jan 17, 2022 5:02 pm

by mona wrote:
Mon Jan 17, 2022 2:02 am
Glad to see you have this resolved
Now that this is solved it is usual to add [SOLVED] to the title.

Thanks
Hi,

It's not resolved, that's using the Meta Tag Title, I've just set the Meta Tag Title and the Product Description as the same.

See https://intelligent-tereshkova.92-205-1 ... duct_id=60

Thanks

Andy

Newbie

Posts

Joined
Fri Jul 27, 2018 12:07 am

Post by paulfeakins » Mon Jan 17, 2022 8:32 pm

eisteddfod_37 wrote:
Sun Jan 16, 2022 11:54 pm
Inside our custom .twig header template we're going this to show the page title within the page. However the above code take the Meta Tag Title. Is there anyway if showing the information page or product title, the one above the Description box using the same format/shortcode?
Might be worth paying a developer from Commercial Support to do this for you.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by eisteddfod_37 » Mon Jan 17, 2022 8:36 pm

Ok thanks.

Newbie

Posts

Joined
Fri Jul 27, 2018 12:07 am
Who is online

Users browsing this forum: No registered users and 245 guests