- перейти к редактированию шаблона: Дизайн ->Изменить HTML
- находим параметр максимальной ширины элемента : CTRL+F 'max-width'
.content-outer, .content-fauxcolumn-outer, .region-inner { min-width: $(content.width); max-width: $(content.width); _width: $(content.width); }
- изменяем:
.content-outer, .content-fauxcolumn-outer, .region-inner { min-width: $(content.width); max-width: 100%; _width: $(content.width); }
- находим конец заголовка : CTRL+F '</head>'
</b:template-skin> </head> <body expr:class='"loading" + data:blog.mobileClass'> <div class='body-fauxcolumns'> </b:template-skin>
- перед тегом </head> добавляем пути до скриптов и стилей SyntaxHighlighter 3
</b:template-skin> <!-- SyntaxHighlighter Head --> <!-- Include required JS files --> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js'/> <!-- Include required JS Brush --> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js' type='text/javascript'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js' type='text/javascript'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js' type='text/javascript'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js' type='text/javascript'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js' type='text/javascript'/> <!-- Include the core style and theme --> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeEclipse.css' rel='stylesheet' type='text/css'/> <!-- /SyntaxHighlighter Head --> </head> <body expr:class='"loading" + data:blog.mobileClass'> <div class='body-fauxcolumns'> </b:template-skin>
- находим конец документа: CTRL+F '</body>'
</script> </body> <macro:includable id='sections' var='col'> <macro:if cond='data:col.num == 0'>
- перед тегом </body> добавляем скрипт для включения SyntaxHighlighter 3 на странице
</script> <!-- SyntaxHighlighter Scrypt --> <script type='text/javascript'> SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.all(); </script> <!-- /SyntaxHighlighter Scrypt --> </body> <macro:includable id='sections' var='col'> <macro:if cond='data:col.num == 0'>
вторник, 19 апреля 2011 г.
blogger настройка шаблона
Подписаться на:
Сообщения (Atom)