ssossossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums Forums OroCommerce New logo for customer portal

This topic contains 7 replies, has 3 voices, and was last updated by  zhex900 3 weeks, 3 days ago.

  • Creator
    Topic
  • #32893

    zhex900
    Participant

    Hi,
    I am trying to change the frontend logo. My code is here https://github.com/zhex900/OT

    I have run this commands to install the new bundle. However the logo did not change. What am I doing wrong?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #32895

    Michael
    Participant

    Are you trying to create your own theme or just change something in the default one?
    If your own theme (the recommended approach) – make sure all your layout files and the theme definition file (theme.yml) are in Resources/views/layouts/yourthemename folder (and not in Resources/views/layouts/default).

    #32896

    zhex900
    Participant

    I have rename default to ot.

    app/console oro:theme:list did not show my theme. Should I follow this https://www.atwix.com/oro/theme-customization?

    #32897

    mmiasnikov
    Moderator

    Hi, zhex900.

    Yes, you can follow the atwix article, but also (it’s preferable) you can follow the official Oro documentation Create reusable themes.

    Anyway, to get your theme available, you have to do the following:
    1) declare your theme in ‘oro_theme:’ section in ‘app/config.yml’ file
    2) OR create the ‘settings.yml’ file (in ‘Resources/public/themes/ot/’ folder) with your theme settings

    Please, see detailed information on Create reusable themes page.

    #32898

    zhex900
    Participant

    I have added ot-theme to app/config.yml
    oro_theme:
    active_theme: ot_theme

    After cache clear. I have this error.

    php app/console oro:theme:list

    [Oro\Bundle\ThemeBundle\Exception\ThemeNotFoundException]
    Theme “ot_theme” not found.

    Here is the new repo
    https://github.com/zhex900/ot-theme

    #32899

    mmiasnikov
    Moderator

    Hello, zhex900.

    If you’ve preferred adding theme settings to app/config.yml (not to ‘Resources/public/themes/ot/settings.yml’), you should follow instructions in Application specific Themes section, namely – declare your theme also in ‘themes’ subsection of ‘oro_theme’ section, for example:

    #32900

    zhex900
    Participant

    T

    • This reply was modified 3 weeks, 3 days ago by  zhex900.
    #32902

    zhex900
    Participant

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.