Jump to content
  • 0

Logo na głównej stronie ,zmiana linku odnośnika


ls29

Question

13 answers to this question

Recommended Posts

  • 0

Jaki rodzaj szablonu ? darmowy standard ? płatny ? warto by było dostać link do szablonu lin ten we większości szablonów jest automatycznie pobierany jako adres sklepu przez div i należy edytować szablon w kodzie jeżeli chcesz tam podać niestandardowy link

jest to przykładowo w div
                                    <h1>
                
  <a href="https://ambitious-existence.demo.prestashop.com/en/">
    <img class="logo img-fluid" src="https://ambitious-existence.demo.prestashop.com/img/logo.png" alt="PrestaShop" width="100" height="28">
  </a>

              </h1>
                              chyba że masz szablon płatny z edycją szablonu i jego opcji lub elementor w szablonie wtedy ze strony zaplecza możesz to zedytować

 

 

 

  • Like 1
Link to comment
Share on other sites

  • 0

Jeśli chcesz zmienić logo sklepu w nagłówku, przejdź do:
/themes/your_theme_folder/templates/_partials/header.tpl

Jeśli chcesz zmienić logo sklepu w stopce, przejdź do:
/themes/your_theme_folder/templates/_partials/footer.tpl

Link to comment
Share on other sites

  • 0

w tych lokalizacjach są pliki header.tpl ,ale nie ma w nich jakiś informacji o grafice logo czy nawet linku który jest przypisany do niej.

Może edycja pliku źródłowego i tam edytować ? tylko jak to zrobić.

Link to comment
Share on other sites

  • 0

 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <[email protected]>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 *}

{if !empty($modules.zonethememanager.is_mobile)}
  <!-- mobile header -->
  <div class="mobile-header-version">
    {block name='header_banner'}
      <div class="header-banner clearfix">
        {hook h='displayBanner'}
      </div>
    {/block}

    {block name='header_nav'}
      <div class="header-nav clearfix">
        <div class="container">
          <div class="header-nav-wrapper">
            <div class="left-nav d-flex">
              {hook h='displayNav1'}
            </div>
            <div class="right-nav d-flex">
              {hook h='displayNav2'}
            </div>
          </div>
        </div>
      </div>
    {/block}

    {block name='main_header'}
      <div class="main-header clearfix">
        <div class="container">
          <div class="header-wrapper">

            {block name='header_logo'}
              <div class="header-logo">
                {renderLogo}
              </div>
            {/block}

            {block name='header_right'}
              <div class="header-right" {if !empty($modules.zonethememanager.sticky_mobile)}data-mobile-sticky{/if}>
                <div class="mobile-display-left d-flex">
                  <div class="mobile-menu-icon d-flex align-items-center justify-content-center" data-left-nav-trigger>
                    <i class="material-icons">view_headline</i>
                  </div>
                </div>
                <div class="display-top align-items-center d-flex justify-content-end">
                  {hook h='displayTop'}
                </div>
                <div class="sticky-background"></div>
              </div>
            {/block}

          </div>
        </div>
      </div>
    {/block}

    {block name='header-bottom'}
      <div class="header-bottom clearfix">
        <div class="header-main-menu">
          <div class="container">
            {hook h='displayNavFullWidth'}
          </div>
        </div>
      </div>
    {/block}
  </div>

{else}
  <!-- desktop header -->
  <div class="desktop-header-version">
    {block name='header_banner'}
      <div class="header-banner clearfix">
        {hook h='displayBanner'}
      </div>
    {/block}

    {block name='header_nav'}
      <div class="header-nav clearfix">
        <div class="container">
          <div class="header-nav-wrapper d-flex align-items-center justify-content-between">
            <div class="left-nav d-flex">
              {hook h='displayNav1'}
            </div>
            <div class="right-nav d-flex">
              {hook h='displayNav2'}
            </div>
          </div>
        </div>
      </div>
    {/block}

    {block name='main_header'}
      <div class="main-header clearfix">
        <div class="container">
          <div class="header-wrapper d-flex align-items-center">

            {block name='header_logo'}
              <div class="header-logo">
                {renderLogo}
              </div>
            {/block}

            {block name='header_right'}
              <div class="header-right">
                <div class="display-top align-items-center d-flex flex-wrap flex-lg-nowrap justify-content-end">
                  {hook h='displayTop'}
                </div>
              </div>
            {/block}

          </div>
        </div>
      </div>
    {/block}

    {block name='header-bottom'}
      <div class="header-bottom clearfix">
        <div class="header-main-menu" id="header-main-menu" {if !empty($modules.zonethememanager.sticky_menu)}data-sticky-menu{/if}>
          <div class="container">
            <div class="header-main-menu-wrapper">
              {if !empty($modules.zonethememanager.sidebar_navigation)}
                <div class="left-nav-trigger" data-left-nav-trigger>
                  <div class="left-nav-icon d-flex align-items-center justify-content-center">
                    <i class="material-icons">view_headline</i>
                  </div>
                </div>
              {/if}
              <div class="sticky-icon-cart" data-sticky-cart data-sidebar-cart-trigger></div>
              {hook h='displayNavFullWidth'}
            </div>
          </div>
        </div>
      </div>
    {/block}
  </div>

{/if}
 

Link to comment
Share on other sites

  • 0

/templates/_partials/helpers.tpl

Sprawdź czy masz coś takiego. Tam powinna być funkcja: 

 

{function renderLogo}
  <a href="{$urls.pages.index}">
    <img
      class="logo img-fluid"
      src="{$shop.logo_details.src}"
      alt="{$shop.name}"
      width="{$shop.logo_details.width}"
      height="{$shop.logo_details.height}">
  </a>
{/function}


Czy nie mamy aby BOTa na sali?

Link to comment
Share on other sites

  • 0

{**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <[email protected]>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 *}
 
{function renderLogo}
  <a href="{$urls.pages.index}" title="{$shop.name}">
    {if !empty($modules.zonethememanager.svg_logo)}
      <img class="svg-logo" src="{$modules.zonethememanager.svg_logo}" style="width: {$modules.zonethememanager.svg_width}" alt="{$shop.name}">
    {elseif !empty($shop.logo_details)}
      <img class="logo" src="{$shop.logo_details.src}" alt="{$shop.name}" width="{$shop.logo_details.width}" height="{$shop.logo_details.height}">
    {else}
      <img class="logo" src="{$shop.logo}" alt="{$shop.name}">
    {/if}
  </a>
{/function}
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...