Forum Replies Created

Viewing 30 posts - 121 through 150 (of 214 total)
  • Author
    Posts
  • in reply to: Switch to mobile menu at 1150px, not 990px #824780

    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; }}

    in reply to: Switch to mobile menu at 1150px, not 990px #822878

    @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 visible

    and 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… :-(

    in reply to: Switch to mobile menu at 1150px, not 990px #822590

    @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.

    in reply to: Switch to mobile menu at 1150px, not 990px #821703

    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.

    Look 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.

    in reply to: LayerSlider width being ignored #810957

    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.

    in reply to: LayerSlider width being ignored #810563

    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?

    in reply to: Street View #809833

    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.

    @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.

    in reply to: big-preview img problem not solved #779401

    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?

    in reply to: big-preview img problem not solved #778801

    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; }

    max-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.

    in reply to: Improving theme performance ref. PageSpeed, YSlow etc #755028

    @Rikard – yes, interesting feedback from user @accurIT but what is the official Kriesi recommendation/position?

    in reply to: Add a heading/title above widget_nav_menu #730002

    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. :-)

    in reply to: Add a heading/title above widget_nav_menu #729916

    I tried that first, it doesn’t work. The text widget is placed below the widget_nav_menu element as can be seen here.

    I want the text above the menu.

    Live page with text widget here.

    • This reply was modified 7 years, 10 months ago by zimbo.
    in reply to: Slider behaviour documentation anywhere? #726219

    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?

    Well, 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?

    Hi 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?

    In private below as requested. Whilst this dev… site is obviously live it is only used for test & development and is hidden from search engines.

    The 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…?

    Hi,

    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 ago by zimbo.

    Hi,

    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.

    in reply to: No title displayed on post, excerpt missing on blog post #704491

    Thanks, #1 working now.

    in reply to: No title displayed on post, excerpt missing on blog post #698005

    Sorry 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.

    in reply to: Single category post appearing on parent Blog Posts page #697998

    Well, 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.

    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/rNBGA

    The 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, 1 month ago by zimbo.
    in reply to: Single category post appearing on parent Blog Posts page #695769

    Not 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, 1 month ago by zimbo.
    in reply to: No title displayed on post, excerpt missing on blog post #694675

    I 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?

    in reply to: No title displayed on post, excerpt missing on blog post #694612

    Yes the post was created using ALB. I just realised the comments are missing as well. Username in private content.

    Why are those elements not displayed? More to the point, how can I get them to show?

    in reply to: Single category post appearing on parent Blog Posts page #693665

    Details below as requested.

    Please note that this is a live news website that has new posts added on a daily basis. The Travel-only post Beautiful Winter Destinations is now listed on page 2 of the News pages and will soon be on page 3 (or even later) as new stories are posted today, so you may need to search to see it displayed on the parent News page.

    • This reply was modified 8 years, 1 month ago by zimbo.
Viewing 30 posts - 121 through 150 (of 214 total)