Forum Replies Created
-
AuthorPosts
-
@Steffen – no idea why the burger menu is on the left, it’s always displayed to the right, at all responsive screen sizes, on all the sites I’ve modified for the wider ‘trigger’ point (when I’ve got it working how I want it that is, but I never had a left-aligned issue).
As a humble user I think you’ll need to wait for a moderator to help you. They’ll need to see the site however so reply with the domain so they can have a look at it live.
@Steffen – see this thread. It should help but good luck – it’s not a trivial change, it’s a real pain. I’ve just had to do it on another Enfold site and the solution I posted at the end of that thread, whilst the main elements are similar, had to be customised again to make it work.
There was still a problem with the search icon not showing but I have now got this working (I think and hope…) and am posting the final CSS so that anyone else who wants to do this might have an easier job implementing it than me. You’ll still probably have to tweak it but hopefully it will get you on your way. :-)
I do have to say that the new burger menu is a nightmare to customise and a change to Enfold > Main Menu to allow user selection of when tablets and smartphones switch to the mobile menu, especially given the multitude of devices available these days, is now urgently needed in the theme.
Notes:
Change all references to 1150px to whatever screen width you want the burger menu to appear from above 990px.
My normal desktop header is 116px high – responsive mode changes the header height & various paddings to all sorts of different values depending on the screen width – some consistency in the code would be good… ;-)
Enfold > Burger/Mobile Menu Styling is set to #000000.
The responsive search icon is 24px below 990px but this has to be specified between 1150px and 990px in custom CSS.
This next line of custom CSS, quoted in a support answer elsewhere on a similar topic to this, is not needed and stops the search icon displaying –
#top .av_mobile_menu_tablet .av-main-nav .menu-item { display: none!important; }CSS:
@media only screen and (max-width: 1150px) {
#menu-item-search { display: block!important; }
.av-burger-menu-main { display: block!important; }
.html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main { padding-top: 116px; }}@media only screen and (max-width: 1150px) and (min-width: 990px) {
.html_header_top.html_bottom_nav_header #header_main_alternate .main_menu { display: none; }
.html_header_top .av_bottom_nav_header .av-logo-container .main_menu { display: block; }
.html_mobile_menu_tablet #top #wrap_all .menu-item-search-dropdown > a { font-size: 24px; color: #000000; }}@media only screen and (max-width: 989px) and (min-width: 768px) {
.responsive.html_mobile_menu_tablet #top #wrap_all .av-logo-container { height: 116px !important; }
.responsive.html_mobile_menu_tablet.html_header_top.html_header_sticky #top #wrap_all #main { padding-top: 116px; }}@media only screen and (max-width: 767px) {
.responsive #header_main .container { height: 116px !important; }}@victoria – I have a child theme and I’ve added the code into style.css but what do I do with this previous CSS?
@media only screen and (max-width: 1150px) { #top .av_mobile_menu_tablet .av-main-nav .menu-item { display: none!important; } .av-burger-menu-main { display: block!important; }}
I’ve added the 2 lines into your CSS but between 1150px and 990px I now have:
– burger menu top right where it should be but still no search icon
– the space for the normal menu is empty but still visibleand then between 990px and 768px the search icon reappears, the empty ‘normal’ space has gone but the top of the main page content & heading (“Welcome to the…”) is cut off… (and I had to add some CSS to fix .av-logo-container height, which if you remove it the heading reappears but the news ticker now runs over the top of the heading because .av-logo-container has not got enough height – try it in DevTools to see what happens)
but below 768px everything is OK (but again I’ve had to add some CSS to fix #header_main height).
PS. Trying to fix this would be an awful lot easier if the logo/header/menu classes were consistent but they seem to change between different screen widths… :-(
@Victoria – yes the burger menu appears between 1150px and 990px but it’s in the wrong place. It’s positioned in the ‘normal’ menu space and it doesn’t move up until below 990px when it displays here and the ‘normal’ menu space is removed. I’d like the burger to appear in the top header area and the normal menu space to be removed from 1150px downwards so it’s consistent.
Details in private content.
Website is http://dev.henleyherald.com/
Custom CSS code added to try to get the mobile menu working at 1150 px is
@media only screen and (max-width: 1150px) { #top .av_mobile_menu_tablet .av-main-nav .menu-item { display: none!important; } .av-burger-menu-main { display: block!important; } }
Use Chrome DevTools to see the problems:
1. Search icon required when mobile menu displayed but adding #menu-item-search (display: block!important;} in the above media query has no effect.
2. How to move the burger icon out of the ‘normal’ menu area between 1150px and 990px (and into its header position below 990px between these widths), and also to remove the ‘normal’ menu blank space (I think this might be .av-main-nav).[Or more simply, in Enfold > Main Menu, for Menu Items for Mobile, where it has options for Activate on browser widths below 768px or 990px, I want the mobile menu to activate “below 1150px”.]
NB. This is not the only site where I need this fix. I have other sites where the client has requested a switch to the mobile menu at a higher width than Enfold’s 990px default (which is too low IMHO), usually being a fix for iPads and/or, as here, a lot of main menu top level elements.
June 21, 2017 at 9:02 pm in reply to: Responsive tab formatting poor between certain screen sizes #811160Look at this page.
View it at the screen sizes I quoted, between approx 1020px and 768px using Developer Tools.
The last tab title, then the second to last, get wrapped below the top ‘line’ as the screen width decreases, which looks poor because there’s no bottom border plus it’s not as clear as it could be which is the active tab when compared to standard desktop mode.
I can add a bottom border via the CSS I quoted in the OP which is better but I still think it looks naff if I do that – as does my client – so we want to vertically stack the tabs at a higher screen size than the Enfold default of 768px. Just need to know the correct element & media query to make this happen please.
It is not a plugin conflict, it is a problem in LayerSlider and/or Enfold.
I have deactivated all plugins and removed the additional CSS to test this out.
When the slider type is set to Responsive in LayerSlider Slider Settings with a canvas width and height of 700 px and 467 px respectively, all the slider images (which are all actually 700 px wide and 467 px high) are expanded to fill the layerslider_X div, which has values set of width: 863px; height: 576px;.
This is the Responsive HTML code from the page for a canvas width and height of 700 px and 467 px:
<div id="layerslider_7" class="ls-wp-container fitvidsignore ls-fullwidth ls-container ls-responsive ls-device-is-desktop" style="width: 863px; height: 576px; margin: 0px auto; position: relative; visibility: visible;" data-layerslider-uid="LSwkerzzlm5">
The classes .ls-wrapper.ls-bg-outer and .ls-bg are also incorrectly set at 863px and 576px.
If the slider type in LayerSlider Slider Settings is then changed to Fixed Size the layerslider_X div values are altered to a width of 700px and height 467px, and the slider images are correctly displayed as required/specified in the canvas Settings.
This is the Fixed Size HTML code, again for a canvas width and height of 700 px and 467 px:
<div id="layerslider_7" class="ls-wp-container fitvidsignore ls-fullwidth ls-container ls-fixedsize ls-device-is-desktop" style="width: 700px; height: 467px; margin: 0px auto; position: relative; max-width: none; visibility: visible;" data-layerslider-uid="LS851ya40rt">
The classes .ls-wrapper.ls-bg-outer and .ls-bg are also now correctly set at 700px and 467px.
Setting the slider to Fixed Size is of course useless because the slider does not display properly on a phone or tablet.
Whilst we have found a CSS workaround to allow Responsive mode to display as it should, so I don’t need any further help, I think this issue needs reporting to your development team to have them investigate and discover whether it is LayerSlider and/or Enfold that is causing the problem, and hopefully effect a proper fix without having to resort to CSS overrides.
Thanks @ceubri but that didn’t work. The images are 700 px by 467 px and that is what LayerSlider is set to, but @Jordan’s suggestion still didn’t work and I had to add this CSS as well to get it working.
.ls-wrapper.ls-bg-outer { width:700px !important; height: 467px !important; } .ls-bg { width:700px !important; height: 467px !important; }
One last question: is there really no way to remove the need for all this CSS and get LayerSlider to use the specified canvas width and height in Slider Settings? Or to put it another way – isn’t this a bug in LayerSlider given that it ignores the canvas dimensions?
What I didn’t understand in the post I quoted was that there is a #streetview CSS declaration that is not referenced in the iframe code.
So I think something is missing in order to get this working – can you post what the complete solution should be? I don’t follow your ‘body’ sugestion above either I’m afraid.
Regarding Google blocking the Street View URL, why would they do that? I’m trying to promote their service… (not that they need much more promotion). Real estate websites (in the UK where I am) are almost all using Street View in a listing of a house for sale – see the Street View tab on this page.
June 16, 2017 at 8:49 pm in reply to: LayerSlider navigation thumbnails overlapping Tabs element below #809087@Jordan Shannon – thanks…
Your height directive has a missing ! before the important and when this is included the slider disappears, but the thumbnails remain. :-(
Is heightneeded? Or ‘auto’/’inherit’?
The padding-bottom however creates a whitespace when responsive. I’ll have to add some responsive CSS to reduce the padding-bottom at various screen sizes. Can you remind/suggest code at what sizes might be appropriate, can’t remember when Enfold switches.
This post has a Featured Image of the ‘normal’ size, 700px x 467px. It has this code
.big-preview img { width: auto; }
in a child theme style.css to override the width: 100% in layout.css, for the FI to display at its ‘proper’ defined size. If you use Developer Tools to temporarily turn off this child declaration you will see the FI fill the whole of the outer entry-content-wrapper container (not what is required).
This other post has a FI of 467px x 467px. It is displaying at that ‘proper’ size – which is what I want – because of the child CSS override above. Again, turn this off temporarily and the 467px wide image fills the whole container.
So you can see that I have managed to override width:100% in layout.css.
Sometimes however an FI will be another smaller size so I need a solution that works for all FI image sizes i.e. stop the enlargement to fill the outer container, and my question is whether I have done it in the right way with width:auto or is another CSS statement a better / correct way e.g. inherit?
I have that plugin installed and WP image sizing is not the problem.
Enfold is now automatically enlarging a Featured Image from its standard defined size of 700px x 467px due to width: 100%; having been added to the .big-preview img declaration in layout.css, line 2075, a change introduced in v.4.0.3.
I want to stop that enlarging process.
.big-preview.single-big img { max-width: 700px !important; }, as previously suggested, does not work for cases where the FI is smaller than the usual 700px width – such smaller FIs get enlarged to 700px.
Which of these two CSS options is the correct one to keep all the FIs at their “proper” size?
1: .big-preview img { width: auto; }
2: .big-preview img { width: inherit; }
April 12, 2017 at 12:56 pm in reply to: .big-preview img CSS definition has added 'width: 100%' – why? #776614max-width has worked but the layout.css code definitely changed between 3.8.5 and 4.0.3 to add width:100% as I’d saved the old version and compared it. Thanks.
@Rikard – yes, interesting feedback from user @accurIT but what is the official Kriesi recommendation/position?
OK, just found the problem.
Somehow Page Sidebar navigation was ticked in Enfold > Sidebar Settings which was causing widget_nav_menu to appear automatically above the widget area, I didn’t actually have any other widgets in the Widgets > Sidebar Pages widget other than Text. So I’ve now un-ticked it and added a Custom Menu under the Text (‘Our Members’) and it’s how I want it.
Thanks, case closed. :-)
So what is the point of the selection box Slideshow Image Size?
You’re saying – and this is the behaviour of the slider – that whatever image size I choose is expanded to fill out the outermost container space. Which is crazy.
The statement under the selector title says “Choose the size of the image that loads into the slideshow” which, of course, is what is happening but the slider behaviour should be “Choose the size of the image that is displayed by the slideshow”?
That is what the image size selector should do – surely?
November 9, 2016 at 5:13 pm in reply to: Woocommerce Short Description not displaying correctly on category page #710331Well, I found another way to get this working.
I found the code section where WooCommerce displays the Short Desc on the product and used that, as so:
add_action( 'woocommerce_after_shop_loop_item_title', 'avia_category_page_new_div', 20); function avia_category_page_new_div() { global $post; $desc = '<div class="category-desc">' .apply_filters( 'woocommerce_short_description', $post->post_excerpt ). '</div>'; echo $desc; global $product; echo $product->list_attributes(); }
I’ve also added in the Attributes as well so the client can decide which one (or both) they want. It works so I assume this is a valid way of doing this?
November 7, 2016 at 2:28 pm in reply to: Woocommerce Short Description not displaying correctly on category page #709207Hi Yigit,
I tried to add HTML tags in Text previously but found the editor stripped them out. When I viewed the Text tab of the Short Description that you had edited, this is what I saw on screen: http://imgur.com/a/Wz3F9 – there were no HTML tags.
And as soon as I did an Update on the product, your edits were lost. How did you get the <p> and <br> tags to stay?
November 4, 2016 at 7:39 pm in reply to: Woocommerce Short Description not displaying correctly on category page #708398In private below as requested. Whilst this dev… site is obviously live it is only used for test & development and is hidden from search engines.
November 4, 2016 at 4:30 pm in reply to: Woocommerce Short Description not displaying correctly on category page #708305The function to get the Short Description to display on the category thumbnail viz.
add_action( 'woocommerce_after_shop_loop_item_title', 'avia_shop_overview_extra_header_div_new', 20); function avia_shop_overview_extra_header_div_new() { global $post; $text = '<div>' .$post->post_excerpt. '</div>'; echo $text; }
was actually provided by Yigit, one of your Enfold Support colleagues, in response to a previous question – https://kriesi.at/support/topic/woocommerce-grid-remove-price-and-add-product-short-description-instead/#post-680083
I have modified that function by using snippets from other Enfold questions/replies to get it to show the Short Description instead of the_excerpt, so I rather hoping that someone could suggest a further tweak to fix how the Short Description is currently being displayed…?
November 4, 2016 at 3:26 pm in reply to: Woocommerce Short Description not displaying correctly on category page #708225Hi,
You need to look at 2 things.
1. The product listing for Anniversary Waltz as per your imgur image. The Short Description is listed out one line after another. This is OK.
2. Then look at the thumbnail/summary for that product on the category page for Limited Edition Prints, as seen in my link here: http://imgur.com/a/GnzpS. (The menu structure has changed; the category page URL is – http://dev.jacksgallery.co.uk/product-category/limited-edition-prints/) To easily find the thumbnail/summary for the product Anniversary Waltz on the category page you should alter the “Sort by…” selector at the top of the page to “Sort by Name”, then the thumbnail should appear in the middle of the second row on the first page. When you see the thumbnail you will see the Short Description lines flow one after another and are not separated by line breaks as they are in the actual product, so this is wrong. This is what you can see in my imgur link above.
- This reply was modified 8 years, 1 month ago by zimbo.
November 2, 2016 at 4:45 pm in reply to: Woocommerce Short Description not displaying correctly on category page #707224Hi,
The product I’ve added the Short Description to is Anniversary Waltz, URL http://dev.jacksgallery.co.uk/product/anniversary-waltz/
On the limited-edition-prints product category page you may need to adjust the ‘Sort by’ selector for ‘Name’, then that product should appear in the middle of the second row on the first page.
October 26, 2016 at 7:26 pm in reply to: No title displayed on post, excerpt missing on blog post #704491Thanks, #1 working now.
October 11, 2016 at 7:03 pm in reply to: No title displayed on post, excerpt missing on blog post #698005Sorry been away… here’s the post link again.
1. I’ve got this working using @Josue’s code from the second link above however the categories are not showing – here’s the code I’m using, I’ve removed the comment count section.
function custom_shortcode_func() { ob_start(); echo "<span class='post-meta-infos'>"; echo "<time class='date-container minor-meta updated'>".get_the_time(get_option('date_format'))."</time>"; echo "<span class='text-sep text-sep-date'>/</span>"; if(!empty($cats)) { echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." "; echo $cats; echo '</span><span class="text-sep text-sep-cat">/</span>'; } echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." "; echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>'; echo '<span class="vcard author"><span class="fn">'; the_author_posts_link(); echo '</span></span>'; echo '</span>'; echo '</span>'; echo '</span>'; $output = ob_get_clean(); return $output; } add_shortcode('the_post_meta', 'custom_shortcode_func');
I tried ‘echo $cats’ on its own but nothing shows, implying $cats is empty. Is the problem how does $cats get populated – shouldn’t there be a wp_get_post_categories function call or something?
2. If you look at any other post you’ll see the comments are last but on this ALB-created post they are before the share link and Related Posts. I suspect there might not be anything that can be done about this because the Comments are added as a content element in the post.
3. Related Posts are now appearing somehow, I didn’t do anything, must have been a blip on my part! So sorted.
October 11, 2016 at 6:32 pm in reply to: Single category post appearing on parent Blog Posts page #697998Well, obviously not your ‘fault’ but I have to say that seems a bit dumb on WordPress’ part, but I guess I’ll have to live with it. Thanks.
October 7, 2016 at 2:49 pm in reply to: Single category post appearing on parent Blog Posts page #696522@Andy – did you not read this in my last post?
“… this is a live news website that has new posts added on a daily basis. The posts referenced on pages 7 and 69 (of News) may soon be on later News sub-pages”“Beautiful Winter Destinations” is now on page 9 of News – http://www.henleyherald.com/news/page/9/
“Have Your Say – EU Referendum” is now on page 71 of News – http://www.henleyherald.com/news/page/71/Depending on when you look at this problem again, those posts might be on page 10 or page 72…. or perhaps later – it depends on how many News stories are added each day, because it pushes back the two posts onto later sub-pages.
@Andy – “I still think that screenshots would help to make things clear for us.” I provided you with a screenshot in my last post here – http://imgur.com/a/rNBGAThe problem is this – both those posts do not have the category of News assigned to them yet they appear on the News (sub-)pages.
- This reply was modified 8 years, 2 months ago by zimbo.
October 5, 2016 at 9:57 pm in reply to: Single category post appearing on parent Blog Posts page #695769Not quite sure what is so difficult to understand, my original post – that I posted over a week ago – explains it but I will do so again.
This post has a single category of ‘Travel’.
This post has a single category of ‘Have Your Say’.
The site has many other categories for its posts, one of these is ‘News’.
This News page and its sub-pages displays all the posts that have the category ‘News’ assigned to them. The page is created using ALB and has the Blog Posts element on it, for which the ONLY category selected is ‘News’. You can check this using the login details provided above.
The Beautiful Winter Destinations post is showing on this page, which is a sub-page of News. The post does NOT have the category News assigned to it, there it should not appear on the News pages.
The Have Your Say – EU Referendum… post is showing on this page, which is a sub-page of News. The post does NOT have the category News assigned to it, there it should not appear on the News pages.
See the posts showing on the News pages here on Imgur. You can click on the individual post links above to verify that they do not have the category News assigned to them.
The problem – posts that do NOT have the category News assigned to them are appearing on the News pages when they should not.
My belief is that Blog Posts is not working properly – the ‘News’ category is the parent of both ‘Travel’ and ‘Have Your Say’ categories and it is incorrectly including child categories when displaying the lists of posts, when said child categories are NOT selected for inclusion in the Blog Post settings.
[As above, this is a live news website that has new posts added on a daily basis. The posts referenced on pages 7 and 69 may soon be on later News sub-pages.]
- This reply was modified 8 years, 2 months ago by zimbo.
October 3, 2016 at 3:47 pm in reply to: No title displayed on post, excerpt missing on blog post #694675I assume I use a Text Box to set the title as H1?
But how do I get the post meta data to show under the title?
I do not use Enfold’s Sharing links but Jetpack’s Sharing app and this is normally displayed right after the post content and before the comments, however on the ‘ALB-created post’ the sharing links are shown after the comments section – how do I get the Jetpack share links to follow the order of all other posts on the site i.e. before the comments?
I also Jetpack’s Related Posts feature on all posts – see an example here if you’re not familiar with it, but this is not showing at all on the ‘ALB-created post’ – how do I get it to show, as on all other posts?
-
AuthorPosts