Forum Replies Created

Viewing 30 posts - 151 through 180 (of 230 total)
  • Author
    Posts
  • 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 8 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 9 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 9 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 9 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 9 years, 1 month ago by zimbo.
    in reply to: Closing an open tab in mobile #691168

    Good suggestion though that would mean maintaining the same code block twice. As I said originally, it’s not that much of a big deal (the tab not closing on press/click) so I’ll probably just leave it. You can close this. Thanks.

    in reply to: Closing an open tab in mobile #689163

    @Josue

    I’m not using an Accordian but Tabs and have implemented this fix to have all tabs closed on page load when mobile. The client wants the page to use Tabs, preferring the layout.

    in reply to: Enfold – What's changed? #687452

    Totally agree with rlogan2334, I get an email from Envato/themeforest telling me you’ve released a new version of Enfold but it doesn’t state the new version number or what’s changed. When 3.8 was released I searched the support forum in vain to try and find out what’s new. A locked Enfold Changelog thread is the way forward.

    in reply to: Closing an open tab in mobile #686866

    I think I gathered that, so is it possible to change this behaviour so that a click/press on the tab header in mobile view toggles the content open/close?

    in reply to: Enfold Showcase #685301

    Hi,

    Another site now using Enfold, recently changed from another theme that the author abandoned… :-(

    Henley Herald

    • This reply was modified 9 years, 2 months ago by zimbo.
    in reply to: Change tab titles into a heading #683256

    Excellent, thank you.

    in reply to: Changing the archive blog style #680070

    As I originally posted, using the second solution has given me the layout I want, my question was more curiosity – but the Tutorial definitely didn’t work for me, but no matter. Closed.

    in reply to: Turn off #header_main_alternate .container #680056

    It nearly worked, but below 990px #main came up into the header so I modified your suggestion to
    @media only screen and (max-width: 1024px) and (min-width: 990px)
    and it’s OK now. Thanks.

    in reply to: Expand avia image to full column width #679569

    Ah, you are correct – I did not insert the image, the blog editor did it (I’m just the webmaster) and I’ve checked and can see that they did indeed choose to insert the 300px wide image instead of the full size one. All is now OK, thank you, and words have been said… :-)

    in reply to: Move avia-search-tooltip box when responsive #679410

    Great, thanks.

    Thanks Yigit but there is an error in that code – line 3 should be
    function avia_exclude_widget_category( $cat_args ) {
    and not wpsites_… but I changed it, and it now works. :-)

    Page here.

    I want to stop DoNotShow and NewsTicker categories from appearing in the ‘Categories: Archive by Categories’ widget dropdown list in the sidebar.

    in reply to: Blog Grid thumbnail aspect ratio #673845

    Hi,

    I’ve changed both to manual and it looks OK now, thanks. It’s not perfect but the client thinks it’s alright.

    All done. :-)

    in reply to: Blog Grid thumbnail aspect ratio #670926

    Hi,

    I do not have the Preview Image Size set to manual, it’s auto.

    Why is the portrait image (Test…) is displaying nearly 50% bigger than the landscape one (Tesco…)? The original portrait image is about half the size of the landscape image, the thumbnail Enfold is choosing is also smaller yet the image-overlay (if that’s what’s doing the resizing) is 50% taller, hence the image in the post on the left is 50% bigger than the post in the centre. In a Blog Grid like this I think the same image height should be the primary aspect so that the grid images line up in a row horizontally. Is this possible?

    http://dev.henleyherald.com/

Viewing 30 posts - 151 through 180 (of 230 total)