Как изменить ширину позиции в шаблоне?

Тема в разделе "Внешний вид, шаблоны, графика", создана пользователем Sergi, 10.06.2017.

  1. Offline

    Sergi Пользователь

    Регистрация:
    03.11.2009
    Сообщения:
    104
    Симпатии:
    0
    Пол:
    Мужской
    Хочу сделать сайт аналогично демонстрации шаблона https://ltheme.com/wp-content/uploads/2014/07/lt-hotel-mockup.png
    Но в самом шаблоне позиции которые находятся выше меню не имеют 100% ширины.
    Вот скрин позиций
    801a8c9444237982f46ff0df044b4141.jpg


    Вот что выходит у меня
    e3e414e046d90769f1d16de2ec9fb4d7.jpg

    Отсюда вопрос как сделать 100% ширину позиции top2 что бы получилось аналогично демонстрации шаблона
    или перенести позицию title над позицией menu?.
    Знаю что эти вещи регулируются в файлах index.php templateDetails.xml template.css но название позиций я нашел только в файле templateDetails.xm, по этому самому отрегулировать не удалось.

    Вот самим файлы index.php


    Код (CODE):
    1. <?php
    2. /**
    3. * @package Helix3 Framework
    4. * @author L.THEME http://www.ltheme.com
    5. * @copyright Copyright (c) 2010 - 2015 L.THEME
    6. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
    7. */
    8. //no direct accees
    9. defined ('_JEXEC') or die ('resticted aceess');
    10.  
    11. $doc = JFactory::getDocument();
    12.  
    13. JHtml::_('jquery.framework');
    14. JHtml::_('bootstrap.framework'); //Force load Bootstrap
    15. unset($doc->_scripts[$this->baseurl . '/media/jui/js/bootstrap.min.js']); // Remove joomla core bootstrap
    16.  
    17.  
    18. //Load Helix
    19. $helix3_path = JPATH_PLUGINS.'/system/helix3/core/helix3.php';
    20.  
    21. if (file_exists($helix3_path)) {
    22.     require_once($helix3_path);
    23.     $this->helix3 = helix3::getInstance();
    24. } else {
    25.     die('Please install and activate helix plugin');
    26. }
    27.  
    28. //Coming Soon
    29. if($this->helix3->getParam('comingsoon_mode')) header("Location: ".$this->baseUrl."?tmpl=comingsoon");
    30.  
    31. //Class Classes
    32. $body_classes = '';
    33.  
    34. if($this->helix3->getParam('sticky_header')) {
    35.     $body_classes .= ' sticky-header';
    36. }
    37.  
    38. $body_classes .= ($this->helix3->getParam('boxed_layout', 0)) ? ' layout-boxed' : ' layout-fluid';
    39.  
    40. //Body Background Image
    41. if($bg_image = $this->helix3->getParam('body_bg_image')) {
    42.  
    43.     $body_style  = 'background-image: url(' . JURI::base(true ) . '/' . $bg_image . ');';
    44.     $body_style .= 'background-repeat: '. $this->helix3->getParam('body_bg_repeat') .';';
    45.     $body_style .= 'background-size: '. $this->helix3->getParam('body_bg_size') .';';
    46.     $body_style .= 'background-attachment: '. $this->helix3->getParam('body_bg_attachment') .';';
    47.     $body_style .= 'background-position: '. $this->helix3->getParam('body_bg_position') .';';
    48.     $body_style  = 'body.site {' . $body_style . '}';
    49.  
    50.     $doc->addStyledeclaration( $body_style );
    51. }
    52.  
    53. //Body Font
    54. $webfonts = array();
    55.  
    56. if( $this->params->get('enable_body_font') ) {
    57.     $webfonts['body'] = $this->params->get('body_font');
    58. }
    59.  
    60. //Heading1 Font
    61. if( $this->params->get('enable_h1_font') ) {
    62.     $webfonts['h1'] = $this->params->get('h1_font');
    63. }
    64.  
    65. //Heading2 Font
    66. if( $this->params->get('enable_h2_font') ) {
    67.     $webfonts['h2'] = $this->params->get('h2_font');
    68. }
    69.  
    70. //Heading3 Font
    71. if( $this->params->get('enable_h3_font') ) {
    72.     $webfonts['h3'] = $this->params->get('h3_font');
    73. }
    74.  
    75. //Heading4 Font
    76. if( $this->params->get('enable_h4_font') ) {
    77.     $webfonts['h4'] = $this->params->get('h4_font');
    78. }
    79.  
    80. //Heading5 Font
    81. if( $this->params->get('enable_h5_font') ) {
    82.     $webfonts['h5'] = $this->params->get('h5_font');
    83. }
    84.  
    85. //Heading6 Font
    86. if( $this->params->get('enable_h6_font') ) {
    87.     $webfonts['h6'] = $this->params->get('h6_font');
    88. }
    89.  
    90. //Navigation Font
    91. if( $this->params->get('enable_navigation_font') ) {
    92.     $webfonts['.sp-megamenu-parent'] = $this->params->get('navigation_font');
    93. }
    94.  
    95. //Custom Font
    96. if( $this->params->get('enable_custom_font') && $this->params->get('custom_font_selectors') ) {
    97.     $webfonts[ $this->params->get('custom_font_selectors') ] = $this->params->get('custom_font');
    98. }
    99.  
    100. $this->helix3->addGoogleFont($webfonts);
    101.  
    102. //Custom CSS
    103. if($custom_css = $this->helix3->getParam('custom_css')) {
    104.     $doc->addStyledeclaration( $custom_css );
    105. }
    106.  
    107. //Custom JS
    108. if($custom_js = $this->helix3->getParam('custom_js')) {
    109.     $doc->addScriptdeclaration( $custom_js );
    110. }
    111.  
    112. ?>
    113. <!DOCTYPE html>
    114. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
    115. <head>
    116.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
    117.     <meta name="viewport" content="width=device-width, initial-scale=1">
    118.     <?php
    119.     if($favicon = $this->helix3->getParam('favicon')) {
    120.         $doc->addFavicon( JURI::base(true) . '/' .  $favicon);
    121.     } else {
    122.         $doc->addFavicon( $this->helix3->getTemplateUri() . '/images/favicon.ico' );
    123.     }
    124.     ?>
    125.  
    126.     <jdoc:include type="head" />
    127.    
    128.     <?php
    129.  
    130.     $this->helix3->addCSS('bootstrap.min.css, font-awesome.min.css, default.css') // CSS Files
    131.         ->addJS('bootstrap.min.js, jquery.cookie.js, jquery.sticky.js, main.js, jquery.counterup.min.js, waypoints.min.js, jquery.easing.1.3.min.js, jquery.mixitup.min.js, jquery.stellar.min.js, wow.min.js, custom.js, scroll.js, jquery.nav.js') // JS Files
    132.         ->lessInit()->setLessVariables(array(
    133.             'preset'=>$this->helix3->Preset(),
    134.             'bg_color'=> $this->helix3->PresetParam('_bg'),
    135.             'text_color'=> $this->helix3->PresetParam('_text'),
    136.             'major_color'=> $this->helix3->PresetParam('_major')
    137.             ))
    138.         ->addLess('legacy/bootstrap', 'legacy')
    139.         ->addLess('master', 'template');
    140.  
    141.         //RTL
    142.         if($this->direction=='rtl') {
    143.             $this->helix3->addCSS('bootstrap-rtl.min.css')
    144.             ->addLess('rtl', 'rtl');
    145.         }
    146.  
    147.         $this->helix3->addLess('presets',  'presets/'.$this->helix3->Preset(), array('class'=>'preset'));
    148.        
    149.         //Before Head
    150.         if($before_head = $this->helix3->getParam('before_head')) {
    151.             echo $before_head . "\n";
    152.         }
    153.     ?>
    154. </head>
    155. <body class="<?php echo $this->helix3->bodyClass( $body_classes ); ?>">
    156.     <div class="body-innerwrapper">
    157.         <?php $this->helix3->generatelayout(); ?>
    158.  
    159.         <div class="offcanvas-menu">
    160.             <a href="#" class="close-offcanvas"><i class="fa fa-remove"></i></a>
    161.             <div class="offcanvas-inner">
    162.                 <?php if ($this->helix3->countModules('offcanvas')) { ?>
    163.                     <jdoc:include type="modules" name="offcanvas" style="sp_xhtml" />
    164.                 <?php } else { ?>
    165.                     <p class="alert alert-warning"><?php echo JText::_('HELIX_NO_MODULE_OFFCANVAS'); ?></p>
    166.                 <?php } ?>
    167.             </div>
    168.         </div>
    169.     </div>
    170.     <?php
    171.    
    172.     if($this->params->get('compress_css')) {
    173.         $this->helix3->compressCSS();
    174.     }
    175.  
    176.     if($this->params->get('compress_js')) {
    177.         $this->helix3->compressJS( $this->params->get('exclude_js') );
    178.     }
    179.  
    180.     if($before_body = $this->helix3->getParam('before_body')) {
    181.         echo $before_body . "\n";
    182.     }
    183.  
    184.     ?>
    185.      <p align="center"><a href="http://ltheme.com" target="_blank" title="Free Joomla! template by L.THEME">Free Joomla! template by L.THEME</a></p>
    186.     <jdoc:include type="modules" name="debug" />
    187. </body>
    188. </html>


    [B][/B]
     
  2.  
  3. Offline

    golovachp Недавно здесь

    Регистрация:
    11.12.2017
    Сообщения:
    3
    Симпатии:
    0
    Пол:
    Женский
    Не всегда в индексе пишется все, это получается большой файл, в индексе удобней указывать только пути и подключения. :) Такие параметры как ширина и бла бла указываются в файле css. Узнайте название класса картинки или айди, потом в файле цсс найдите его и посмотрите параметры, там же и найдете взаимоисключающие параметры. А в шаблоне нет настроек не через код?
     
  4. Offline

    Alekxandr Пользователь

    Регистрация:
    30.11.2015
    Сообщения:
    196
    Симпатии:
    14
    Пол:
    Мужской
    В первую очередь читайте документацию к шаблону. Там многое описано. По ходу вам нужно убрать - Enable Boxed Layout в настройках шаблона.
    Но это только догадки, так я не видел настройки шаблона.
     
  5. OlegK
    Offline

    OlegK Russian Joomla! Team Команда форума ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    771
    Пол:
    Мужской
    Сомневаюсь что ТС ждал с июня ваши ответы . Это "знаменитый" бесплатный шаблон Helix 3 и ман должен быть на сайте разработчика . Но судя по вопросам в сети, шаблон явно не для новичков.
     

Поделиться этой страницей

Загрузка...