Forums › Forums › OroCommerce › I want tot change the front store logo from the default 'oroacme' to our brand
This topic contains 9 replies, has 7 voices, and was last updated by manikumaran1978 4 years, 11 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- September 10, 2017 at 11:19 pm #32084
Hi,
I want tot change the front store logo from the default ‘oroacme’ to our brand, any documentation or steps for that because i searched it out but did not find any help.
sorry i am newbie so i need detailed steps to understand what i should do.
Thanks in advance.
arh922
- CreatorTopic
- AuthorReplies
- September 11, 2017 at 12:03 pm #32085
Hi, please look at layout’s documentation to get idea how layout update works
https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/LayoutBundle/README.mdSeptember 11, 2017 at 7:55 pm #32086Thank you, Yes i looked into this doc. what i need to keep the default layout with change the logo i followed this link: https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/LayoutBundle/Resources/doc/example.md section: Extending exiting block types but i did not understand this: Then, we register it in our container using layout.block_type_extension tag:
can you help me on this?
Thanks
arh922
September 13, 2017 at 9:03 am #32087Hi!
Please, take a look on sample bundle with changing logo and favicon https://drive.google.com/file/d/0B9EOFo7w3UK9djBmTVZjYi1RTEU/view?usp=sharing.
September 13, 2017 at 11:54 am #32088Thank you :)
arh922
September 28, 2017 at 3:39 pm #32090Hi @opopadko,
I tried the sample bundle. For some reasons, it is not copying Resources/public to web/bundles when i ran oro:assets:install What am i missing?
October 18, 2017 at 2:51 am #32091Hi, @avenkoh.
Please, make sure that MyFrontendBundle is loaded. I believe cache:clear command will help.
Thank you.
February 28, 2018 at 5:02 pm #32092Hi there,
I am new to OroCommerce and I am trying my best to follow all the documents to create a new bundle for the theme to just replace logo using the method mention above.
I only the word “eMolecules” instead of the logo.
Please see the Bundle and screenshot:
https://drive.google.com/drive/folders/1sPXdDJDNZffRqQDLU549SKic_TtcGLOW?usp=sharingLooking forward to your response.
Thank you,
KuldeepMarch 5, 2018 at 8:08 am #32093Hi Kuldeep Jariwala,
Note that your bundle should load after all commerce bundles, so priority should be greater than 210.
I slightly simplified your code:
YAML12# theme.ymlicon: '@EmoleculesThemeBundle/Resources/public/default/favicons/favicon.ico'YAML12345# logo.ymllayout:actions:- '@setBlockTheme':themes: 'logo.html.twig'XHTML1234{# logo.html.twig #}{% block _logo_widget %}{{ block_widget(block, {'attr_img': {'src': 'bundles/emoleculestheme/default/images/logo/logo-300.png'}}) }}{% endblock %}April 30, 2019 at 12:08 pm #38750I used the below code to change the logo. It works on the home page; https://www.vibranthobbies.com/
PHP123{% block _logo_widget %}{{ block_widget(block, {'attr_img': {'src': 'bundles/vibrantvh/default/images/logo/logo.svg'}}) }}{% endblock %}However, when you go to any navigational link the logo is not appearing. Example
https://www.vibranthobbies.com/navigation-root/products/by-category/industrialThe issue is the reference to the logo image becomes
https://www.vibranthobbies.com/navigation-root/products/by-category/bundles/vibrantvh/default/images/logo/logo.svg - AuthorReplies
The forum ‘OroCommerce’ is closed to new topics and replies.