JackGraal
Forum Replies Created
-
Hi again,
I have another similar problem with my menu.
The header menu on smaller resolutions (up to 959px) is set to float:left, so after clicking the toggle button the menu is displayed horizontally.
But if I resize the window from let’s say 320 px (when the menu is visible in two rows) to a bigger resolution, the second row is still visible. Or when I load my website on a smartphone in portrait position and then rotate it to landscape position – same effect.
I’ve changed position to relative, margin top to 108px and line-height to 1em – now it just works the way I wanted it to. Check at https://jackgraal.com/en
Thank you ??
Forum: Themes and Templates
In reply to: [Hueman] How to make current page highlighted in menu?I’ve used this css code:
#nav-header .nav li.current-menu-ancestor>a,#nav-header .nav li.current-menu-item>a,#nav-header .nav li.current-post-parent>a,#nav-header .nav li.current_page_item>a,#nav-header .nav li:hover>a,#nav-header .nav li>a:hover,#nav-topbar .nav li.current-menu-ancestor>a,#nav-topbar .nav li.current-menu-item>a,#nav-topbar .nav li.current-post-parent>a,#nav-topbar .nav li.current_page_item>a,#nav-topbar .nav li:hover>a,#nav-topbar .nav li>a:hover { color:#000000; background:#FFFFFF; }
check out how it works on my blog: https://jackgraal.com/en/
Forum: Themes and Templates
In reply to: [Hueman] Split loop and add a section between posts on home pageYeah, it works just the way I wanted. Awesome!
Thank you ??
Forum: Themes and Templates
In reply to: [Hueman] Split loop and add a section between posts on home pageI want two independent widgets and the home page to look like this:
Featured post
post | post
widget 1
post | post
post | post
widget 2
post | post
post | post
post | postForum: Themes and Templates
In reply to: [Hueman] Split loop and add a section between posts on home pageHi again, I’m still editing my theme and I’d like to add a widget between posts as you managed to achieve some time ago.
But I’d like to add two different widgets – one after 3 posts and another one after 7 posts (the first post is a featured).
How can I do it so the widgets will appear only once and only on the home page?
Forum: Themes and Templates
In reply to: [Hueman] Icons instead of toggle menu in mobile versionIt has to be something within the code below (inside styles.css). I tried a few things but I couldn’t make it work
/* common : nav /* ------------------------------------ */ .nav-container { background: #888; z-index: 99; position: relative; } .nav-toggle { display: none; background: #777; cursor: pointer; float: right; height: 50px; width: 60px; color: #fff; text-align: center; } .nav-toggle i { font-size: 29px; padding: 10px 0; } .nav-text { display: none; float: right; font-size: 16px; line-height: 24px; padding: 13px 20px; } .nav li > a:after, .nav > li > a:after { font-family: FontAwesome; display: inline-block; } @media only screen and (min-width: 480px) { .nav-wrap { height: auto!important; } /* common */ .nav { font-size: 0; position: relative; } .nav li a { color: #ccc; display: block; line-height: 20px; } /* dropdown arrows */ .nav li > a:after { content: "\f0da"; float: right; opacity: 0.5; } .nav > li > a:after {content: "\f0d7"; float: none; margin-left: 6px; font-size: 14px; line-height: 1.2em; } .nav li > a:only-child:after {content: ""; margin: 0; } #footer .nav li > a:after { content: "\f0da"; } #footer .nav > li > a:after { content: "\f0d8"; } #footer .nav li > a:only-child:after { content: ""; } /* level 1 */ .nav > li { font-size: 16px; border-right: 1px solid #999; display: inline-block; position: relative; } .nav > li > a { padding: 15px 14px; } .nav > li > a:hover, .nav > li:hover > a { background: #777; } .nav li > a:hover, .nav li:hover > a, .nav li.current_page_item > a, .nav li.current-menu-item > a, .nav li.current-menu-ancestor > a, .nav li.current-post-parent > a { color: #fff; } /* level 2 & 3 */ .nav li:hover > ul { display: block; } .nav ul { display: none; background: #777; position: absolute; left: 0; top: 50px; width: 180px; padding: 10px 0; z-index: 2; -webkit-transform: translateZ(0); -webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.15); box-shadow: 0 2px 2px rgba(0,0,0,0.15); } .nav ul li { font-size: 14px; position: relative; display: block; padding: 0; } .nav ul li a { padding: 10px 20px; } .nav ul li:last-child { border-bottom: 0!important; } /* level 3 */ .nav ul ul { position: absolute; top: -10px; left: 180px; } } @media only screen and (max-width: 479px) { .nav { font-weight: 400; } .nav-container { text-transform: none; } .nav-toggle, .nav-text { display: block; } .nav-wrap { position: relative; float: left; width: 100%; height: 0; overflow: hidden; } .nav-wrap.transition { -webkit-transition: height 0.35s ease; -moz-transition: height 0.35s ease; -o-transition: height 0.35s ease; transition: height 0.35s ease; } .expand .nav-wrap { height: auto; } /* common */ .nav { float: left; width: 100%; } .nav li a { line-height: 20px; display: block; padding: 8px 20px; } .nav li li a { padding-left: 15px; padding-right: 15px; } /* dropdown arrows */ .nav li > a:after { content: '\f0d7'; opacity: 0.5; margin-left: 6px; } .nav > li > a:after { content: '\f0d7'; font-size: 14px; } .nav li > a:only-child:after { content: ''; } /* level 1 */ .nav > li { font-size: 15px; } .nav li > a:hover, .nav li.current_page_item > a, .nav li.current-menu-item > a, .nav li.current-post-parent > a { color: #fff; } /* level 2 & 3 */ .nav ul { display: block!important; margin-left: 40px; } .nav ul li { font-size: 13px; font-weight: 300; } .nav ul li a { padding-top: 6px; padding-bottom: 6px; } } /* ------------------------------------------------------------------------- * * Section: Header /* ------------------------------------------------------------------------- */ #header { background: #33363b; position: relative; padding-bottom: 60px; } #header .pad { padding-top: 30px; padding-bottom: 30px; } #header .container-inner { position: relative; } .site-title { font-size: 42px; font-weight: 600; letter-spacing: -0.5px; float: left; line-height: 60px; padding: 10px 0; } .site-title a { display: block; color: #fff; max-width: 100%; } .site-title a img { display: block; max-width: 100%; max-height: 60px; height: auto; padding: 0; margin: 0 auto; -webkit-border-radius: 0; border-radius: 0; } .site-description { font-size: 16px; font-style: italic; color: #fff; color: rgba(255,255,255,0.5); float: left; margin-left: 20px; line-height: 60px; padding: 10px 0; } .site-image { display: block; margin: 0 auto; max-height: 400px; } /* header : search /* ------------------------------------ */ .toggle-search { color: #fff; font-size: 18px; line-height: 24px; cursor: pointer; padding: 13px 20px; display: block; position: absolute; right: 0; top: -50px; -webkit-box-shadow: -1px 0 0 rgba(255,255,255,0.1); box-shadow: -1px 0 0 rgba(255,255,255,0.1); } .toggle-search:hover, .toggle-search.active { background: rgba(0,0,0,0.15); color: #fff; } .search-expand { display: none; background: #26272b; position: absolute; top: 0; right: 0; width: 340px; -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.1); box-shadow: 0 1px 0 rgba(255,255,255,0.1); } .search-expand-inner { background: rgba(0,0,0,0.15); padding: 15px; } .search-expand .themeform input { width: 100%; border: 2px solid #e2e2e2; border-radius: 0; } .search-expand .themeform input:focus { } /* header : nav topbar /* ------------------------------------ */ #nav-topbar.nav-container { background: #26272b; -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.2),0 1px 0 rgba(255,255,255,0.15); box-shadow: 0 0 5px rgba(0,0,0,0.2),0 1px 0 rgba(255,255,255,0.15); } #nav-topbar .nav-toggle { background: transparent; color: #fff; -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,0.06); box-shadow: inset 1px 0 0 rgba(255,255,255,0.06); } #nav-topbar .nav-text { color: #fff; color: rgba(255,255,255,0.7); } @media only screen and (min-width: 960px) { /* fixed nav */ .full-width.topbar-enabled #header { padding-top: 50px; } .full-width #nav-topbar.nav-container { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 999; } .full-width.admin-bar #nav-topbar.nav-container { top: 32px; } } @media only screen and (min-width: 480px) { /* common */ #nav-topbar .container { padding-left: 15px; } #nav-topbar .nav { } #nav-topbar .nav li a { color: #fff; color: rgba(255,255,255,0.7); } /* level 1 */ #nav-topbar .nav > li { border-right: none; } #nav-topbar .nav > li > a:hover, #nav-topbar .nav > li:hover > a { background-color: rgba(0,0,0,0.1); } #nav-topbar .nav li > a:hover, #nav-topbar .nav li:hover > a, #nav-topbar .nav li.current_page_item > a, #nav-topbar .nav li.current-menu-item > a, #nav-topbar .nav li.current-menu-ancestor > a, #nav-topbar .nav li.current-post-parent > a { color: #fff; } /* level 2 & 3 */ #nav-topbar .nav ul { background: #26272b url(img/opacity-10.png) repeat; } #nav-topbar .nav ul li { box-shadow: 0 1px 0 rgba(255,255,255,0.06); -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.06); } #nav-topbar .nav ul li:last-child { box-shadow: none; -webkit-box-shadow: none; } } @media only screen and (max-width: 479px) { /* common */ #nav-topbar .container { padding-left: 0; } #nav-topbar .nav li a { color: #fff; color: rgba(255,255,255,0.8); border-top: 1px solid rgba(255,255,255,0.06); } /* level 1 */ #nav-topbar .nav li > a:hover { background: rgba(0,0,0,0.15); color: #fff; } #nav-topbar .nav li.current_page_item > a, #nav-topbar .nav li.current-menu-item > a, #nav-topbar .nav li.current-post-parent > a { background: rgba(0,0,0,0.15); color: #fff; } } /* header : nav header /* ------------------------------------ */ #nav-header.nav-container { background: transparent; z-index: 97; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 -1px 0 rgba(0,0,0,0.2), inset 1px 0 0 rgba(0,0,0,0.2), inset -1px 0 0 rgba(0,0,0,0.2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 -1px 0 rgba(0,0,0,0.2), inset 1px 0 0 rgba(0,0,0,0.2), inset -1px 0 0 rgba(0,0,0,0.2); } #nav-header .container { padding: 0 15px; } #nav-header .nav-toggle { background: transparent; color: #fff; -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,0.05), -1px 0 0 rgba(0,0,0,0.2); box-shadow: inset 1px 0 0 rgba(255,255,255,0.05), -1px 0 0 rgba(0,0,0,0.2); } #nav-header .nav-text { color: #fff; color: rgba(255,255,255,0.7); } @media only screen and (min-width: 480px) { /* common */ #nav-header .nav { } #nav-header .nav li a { color: #fff; color: rgba(255,255,255,0.7); } /* level 1 */ #nav-header .nav > li { border-right: none; } #nav-header .nav > li > a:hover, #nav-header .nav > li:hover > a { background: rgba(0,0,0,0.1); } #nav-header .nav li > a:hover, #nav-header .nav li:hover > a, #nav-header .nav li.current_page_item > a, #nav-header .nav li.current-menu-item > a, #nav-header .nav li.current-menu-ancestor > a, #nav-header .nav li.current-post-parent > a { color: #fff; } /* level 2 & 3 */ #nav-header .nav ul { background: #33363b url(img/opacity-10.png) repeat; } #nav-header .nav ul li { box-shadow: 0 1px 0 rgba(255,255,255,0.06); -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.06); } #nav-header .nav ul li:last-child { box-shadow: none; -webkit-box-shadow: none; } } @media only screen and (max-width: 479px) { /* common */ #nav-header.nav-container { border-left: 0; border-right: 0; } #nav-header .container { padding: 0; } #nav-header .nav { padding-bottom: 20px; } #nav-header .nav li a { color: #fff; color: rgba(255,255,255,0.8); border-top: 1px solid rgba(255,255,255,0.06); } /* level 1 */ #nav-header .nav li > a:hover { background: rgba(0,0,0,0.15); color: #fff; } #nav-header .nav li.current_page_item > a, #nav-header .nav li.current-menu-item > a, #nav-header .nav li.current-post-parent > a { background: rgba(0,0,0,0.15); color: #fff; } }
Forum: Themes and Templates
In reply to: [Hueman] Icons instead of toggle menu in mobile versionYeah, it works fine.
Now I need to disable the toggle menu on smaller resolutions
Forum: Themes and Templates
In reply to: [Hueman] Icons instead of toggle menu in mobile versionMost of the changes I do by myself, but sometimes I just don’t know where to look for the piece of the code that needs to be edited. I end up doing one thing for hours and refreshing after every minor change.
But when I know what needs to be worked on – it’s much easier.
If you could just point me into the right direction – which themes files and what part of the code concerns the things I’d like to play with ??
Thanks ??
I edited the code and added it to my css like this:
@media only screen and (min-width: 960px) { #nav-header .nav>li { display: inline; } #nav-header .nav li a { float: left; } }
and it works fine.
Thanks for help ??
Forum: Plugins
In reply to: [Infinite Post Transporter] Not working to show post contentHi,
I use the same theme. Your plugin is awesome and the above code works ok, but I have three questions.1. How can I load social share buttons next to each loaded post? The buttons are scrollable.
2. Is there a way to load Disqus below each post? Right now it load only in the first one.
3. How can I limit the number of loaded posts to 3?Appreciate your help!
Forum: Themes and Templates
In reply to: [Hueman] Split loop and add a section between posts on home pageYeah, it’s working.
Thank you for your awesome help!
Forum: Themes and Templates
In reply to: [Hueman] Split loop and add a section between posts on home pageYay, it works!
Thank you ??
Now I just have a question – how can I hide the widget areas on next pages? I would like to make it visible only on home page. The Visibility feature of wordpress widgets doesn’t seem to work.
Forum: Themes and Templates
In reply to: [Hueman] Split loop and add a section between posts on home pageI don’t have a ready code, but this topic is similar to what I want to achieve.
I don’t know how to register the new widget area (in functions.php) and what code should I put into index.php
Forum: Themes and Templates
In reply to: [Hueman] Split loop and add a section between posts on home pageI tried but it doesn’t work. I don’t know where to put the code in the first place
Here’s the index.php code for hueman theme:
<?php get_header(); ?> <section class="content"> <?php get_template_part('inc/page-title'); ?> <div class="pad group"> <?php get_template_part('inc/featured'); ?> <?php if ( have_posts() ) : ?> <div class="post-list group"> <?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?> <?php get_template_part('content'); ?> <?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?> </div><!--/.post-list--> <?php get_template_part('inc/pagination'); ?> <?php endif; ?> </div><!--/.pad--> </section><!--/.content--> <?php get_sidebar(); ?> <?php get_footer(); ?>
Maybe there is a way to register a widget to show after X posts?