krawcu86 Posted January 30, 2023 Share Posted January 30, 2023 Witam, Męczę się z wyśrodkowaniem logo na PS 8.1 i za Chiny nie umiem go wyśrodkować. Czy ktoś już to zmieniał proszę o wskazówki i pomoc. Z góry dzięki Link to comment Share on other sites More sharing options...
0 BartoszeGG Posted January 30, 2023 Share Posted January 30, 2023 zmień szerokość col-md na 12 I dodaj css: #header .logo { display: flex; justify-content: center; align-items: center; margin: auto; } Link to comment Share on other sites More sharing options...
0 krawcu86 Posted January 30, 2023 Author Share Posted January 30, 2023 (edited) Ok a CSS dodać w custom.css jako nowy styl? Uzyskałem taki efekt Edited January 30, 2023 by krawcu86 (see edit history) Link to comment Share on other sites More sharing options...
0 BartoszeGG Posted January 30, 2023 Share Posted January 30, 2023 Tak css dodajesz do custom.css. jeżeli zmieniłeś col-md-12 to logo będzie zajmować całą szerokość. 1 Link to comment Share on other sites More sharing options...
0 krawcu86 Posted January 30, 2023 Author Share Posted January 30, 2023 (edited) A jak teraz zrobić, żeby logo było na środku a menu poniżej? Po wprowadzeniu zmian efekt jest taki sam jak na załączonym wyżej printscreenie Edited January 30, 2023 by krawcu86 (see edit history) Link to comment Share on other sites More sharing options...
0 get3code Posted January 30, 2023 Share Posted January 30, 2023 Edytuj w szablonie plik themes\classic\templates\_partials\header.tpl {** * 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 <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) *} {block name='header_banner'} <div class="header-banner"> {hook h='displayBanner'} </div> {/block} {block name='header_nav'} <nav class="header-nav"> <div class="container"> <div class="row"> <div class="hidden-sm-down"> <div class="col-md-5 col-xs-12"> {hook h='displayNav1'} </div> <div class="col-md-7 right-nav"> {hook h='displayNav2'} </div> </div> <div class="hidden-md-up text-sm-center mobile"> <div class="float-xs-left" id="menu-icon"> <i class="material-icons d-inline"></i> </div> <div class="float-xs-right" id="_mobile_cart"></div> <div class="float-xs-right" id="_mobile_user_info"></div> <div class="top-logo" id="_mobile_logo"></div> <div class="clearfix"></div> </div> </div> </div> </nav> {/block} {block name='header_top'} <div class="header-top"> <div class="container"> <div class="row"> <div class="col-md-12 text-center hidden-sm-down" id="_desktop_logo"> {if $shop.logo_details} {if $page.page_name == 'index'} <h1> {renderLogo} </h1> {else} {renderLogo} {/if} {/if} </div> </div> <div class="row"> <div class="header-top-right col-md-12 col-sm-12 position-static"> {hook h='displayTop'} </div> </div> <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;"> <div class="js-top-menu mobile" id="_mobile_top_menu"></div> <div class="js-top-menu-bottom"> <div id="_mobile_currency_selector"></div> <div id="_mobile_language_selector"></div> <div id="_mobile_contact_link"></div> </div> </div> </div> </div> {hook h='displayNavFullWidth'} {/block} później dodaj do custom.css #header .logo { max-width: 100%; height: auto; display: block; text-align: center; margin: 0 auto; } 1 Link to comment Share on other sites More sharing options...
0 krawcu86 Posted January 30, 2023 Author Share Posted January 30, 2023 Udało się bardzo dziękuje za pomoc. A mam jeszcze jedno pytanie między tym logiem a menu da się wstawić odstęp? Link to comment Share on other sites More sharing options...
0 krawcu86 Posted January 30, 2023 Author Share Posted January 30, 2023 Już sobie poradziłem jeszcze raz dzięki wszystkim za pomoc Link to comment Share on other sites More sharing options...
Question
krawcu86
Witam,
Męczę się z wyśrodkowaniem logo na PS 8.1 i za Chiny nie umiem go wyśrodkować. Czy ktoś już to zmieniał proszę o wskazówki i pomoc.
Z góry dzięki
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now