Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroCommerce New logo for customer portal

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

  • Creator
    Topic
  • #32294

    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
  • #32295
    Michael
    Michael
    Keymaster

    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).

    #32296

    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?

    #32297

    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.

    #32298

    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

    #32299

    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:

    #32300

    zhex900
    Participant

    T

    #32301

    zhex900
    Participant

    Thank you!

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

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
ssossossossossosso