Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #1100144

    Can you please give me some advice about my BLOG:
    1. If I don’t have a picture added to a Blog entry, is there a way NOT to show the preview image? When I click on BLOG and scroll down I have an entry called TIPPS ZUR RAUCHERENTWÖHNUNG, without an image. I don’t want the empty preview image to be shown, but NO IMAGE at all.
    As soon as I click on the entry, the empty preview image also shows there…
    2. I have a fullwidth submenu showing on each page. How can I add this also to individual blog entries, or to the page that shows the summary of all entries in one category (such as REZEPTE).
    3. When I click on a CATEGORY such as REZEPTE, I don’t want the author to be shown.
    Thanks Nora

    #1101237

    Hey NoraGTS,

    Thank you for usign Enfold.

    We encourage users to open a single thread for each inquiry so as to not make it confusing for other users who might be looking for the same answer. It also increases the chance for you to receive a faster response.

    Now, to answer your questions:

    1.) You can remove the fallback image or icon with this css code:

    .slider-fallback-image, .fallback-post-type-icon {
        display: none !important;
    }

    2.) That is possible, but you have to modify the archives.php file and render the shortcode there using the do_shortcode function.

    3.) Use this css code to remove the author from the archive pages.

    .archive.category .text-sep-date, .archive.category .blog-author.minor-meta {
        display: none !important;
    }

    Best regards,
    Ismael

    #1101323

    Thanks, however
    1. didn’t solve the problem.
    When I click on BLOG and scroll down I have an entry called TIPPS ZUR RAUCHERENTWÖHNUNG, without an image.
    The frame for the empty image is still showing, it’s just a bit smaller, and if you click on this one particular blog entry, the empty image is shown on the very top left side as well.
    2. Could you be so kind and tell me how to modify the archives.php file to add the fullwidth submenu to individual blog entries, or to the page that shows the summary of all entries in one category?

    THANKS Nora

    #1101769

    Hi,

    Thanks for the update.

    1.) We forgot to include this css code.

    .fake-thumbnail .slide-image {
        display: none !important;
    }

    The small preview can be removed on the single post page, but the following css code will also affect those posts with featured image.

    .single .small-preview {
        display: none;
    }

    2.) This is an example of the full width sub menu shortcode.

    [av_submenu which_menu='center' menu='' position='center' color='main_color' sticky='true' mobile='disabled' mobile_switch='av-switch-768' mobile_submenu='' av_uid='']
    [av_submenu_item title='Menu Item 1']
    [av_submenu_item title='Menu Item 2']
    [/av_submenu]
    

    You can wrap that around the do_shortcode function and echo it out in the archive.php file or template. You can find an example of that in the function reference page.

    // https://developer.wordpress.org/reference/functions/do_shortcode/

    Best regards,
    Ismael

    #1101804

    Thanks so much for 1. – that all works out fine now!
    About 2.: I’m sorry, I didn’t quite get what the following actually means: You can wrap that around the do_shortcode function and echo it out in the archive.php file or template.
    Wrap it around a do_shortcode? echo it out in archive.php? Sorry, it’s not even because I’m not a native speaker, but because I don’t understand those terms…
    Can you maybe tell me WHERE in the reference page I can take a look – this looks all weird to me… I’m really sorry for the inconvenience!!!!!

    #1102358

    Hi,

    Thanks for the update. And sorry for the confusion.

    In order to make it much more convenient for you, let’s try the following. Create a new page, add a full width submenu to it and take note of the page id because we’re going to use it inside a filter. After creating the page with the full width sub menu element, add this filter in the functions.php file.

    add_action( 'ava_after_main_title', 'ava_after_main_title_mod' );
    function ava_after_main_title_mod() {
        if( ! is_archive() ) return;
    
        $the_id = 4679;
        $post = get_post( $the_id );
        $content = Avia_Builder()->compile_post_content( $post );
    
        echo $content;
    }
    

    Replace the value of the “$the_id” with the actual id of the page with the sub menu element.

    Best regards,
    Ismael

    #1102553

    Thanks for your time to help me out.
    However, I need to have the fullwidth submenu shown on EACH BLOG POST, so would I have to add each post-id to this code? For every single post? And is this possible to add them seperated by a , ?
    I do have the menu showing on my main Blog page, but not on the single post pages, or on the category pages.
    And is it true that in this case it’s called post-id and not page-id, because I didn’t find any page-id, only post-id!
    THanks Nora

    #1102665

    Hi,

    o would I have to add each post-id to this code?

    You need the ID of the newly created page with the full width sub menu element, not the id of the posts where we are going to render the menu. The content of that page, in this case the full width sub menu, will display in the archive pages. And if you want the menu to display on single post pages as well, replace the filter with the following.

    add_action( 'ava_after_main_title', 'ava_after_main_title_mod' );
    function ava_after_main_title_mod() {
        if( is_archive() || is_single() ) 
        {
            $the_id = 4679;
            $post = get_post( $the_id );
            $content = Avia_Builder()->compile_post_content( $post );
            echo $content;
        }   
    }

    Best regards,
    Ismael

    #1102713

    Where do I see the page-ID? I tried with INSPECT ELEMENT but couldn’t find it.
    So I need to add this script and ignore the one before?
    THANKS Nora

    #1102726

    So I created these 3 pages with a fullwidth submenu (see in private content). One for all BLOG POSTS, one for BLOG ARCHIVE and one for BLOG CATEGORY.
    Which of the following codes do I need to add now? And where exactly do I find they page ID in INSPECT ELEMENT?

    #1103964

    Please be so kind and help me out here. I really don’t know how to do it.
    I created these 3 pages with a fullwidth submenu (see in private content). One for all BLOG POSTS, one for BLOG ARCHIVE and one for BLOG CATEGORY.
    Which of the following codes do I need to add now? And where exactly do I find they page ID in INSPECT ELEMENT?

    #1104396

    Hi,

    Thanks for the update.

    If you want to know the id of the page, just edit it and look at the url. You should see the “post” parameter and its value. That’s the id of the page. Example:

    http://www.site.at/wp-admin/post.php?post=8412&action=edit&classic-editor=1
    

    The ID of the page in that example is 8412.

    We updated the code in the functions.php file.

    add_action( 'ava_after_main_title', 'ava_after_main_title_mod' );
    function ava_after_main_title_mod() {
    	$the_id = null;
    
    	if( is_archive() ) {
    		$the_id = 8416;
    	} else if( is_category() ) {
    		$the_id = 8420;
    	} else if( is_page(600) ) {
    		$the_id = 8412;
    	} 
    
    	$post = get_post( $the_id );
    
    	if( ! $post instanceof WP_Post ) {	
    		return false;	
        }
    
    	$content = Avia_Builder()->compile_post_content( $post );
    	echo $content;
    }
    

    Best regards,
    Ismael

    #1104446

    I appreciate your help but did you ever take a look at the result of your update?
    It looks all screwed up.
    FIRST: http://juhjr.w4yserver.at/blog/
    1. It shouldn’t have the fullwidth submenu twice, but BELOW the top image!
    2. All my sidebar elements flip to the bottom, instead of showing at the side.

    Any blog entry:
    1. There is NO FULLWIDTH SUBMENU SHOWING
    2. The image of the blog entry is gone, the text of the blog entry appears twice (????)
    2. All my sidebar elements are shown wrong

    A categroy entry:
    1. There is NO FULLWIDTH SUBMENU SHOWING
    2. All my sidebar elements flip to the bottom, instead of showing at the side.

    #1104449

    I appreciate your help but did you ever take a look at the result of your update?
    It looks all screwed up.
    BLOG PAGE:
    1. It shouldn’t have the fullwidth submenu twice, but only once BELOW the top image!
    2. All my sidebar elements flip to the bottom, instead of showing at the side.

    Any blog entry:
    1. There is NO FULLWIDTH SUBMENU SHOWING
    2. The image of the blog entry is gone, the text of the blog entry appears twice (????)
    2. All my sidebar elements are shown wrong

    A categroy entry:
    1. There is NO FULLWIDTH SUBMENU SHOWING
    2. All my sidebar elements flip to the bottom, instead of showing at the side.

    #1104459

    In addition to my comment above about all the problems this script causes with my BLOG: your script doubled the content on each single page. No matter of startpage, or any other subpage. PLEASE URGENTLY HELP OUT HERE because this is really bad!

    #1104477

    URGENT UPDATE:
    I appreciate your help but did you ever take a look at the result of your update?
    It looks all screwed up.
    Your script doubled the content on each single page. No matter if it’s the startpage, or any other subpage. PLEASE URGENTLY HELP OUT HERE because this is really bad!

    Here are the current problems on my BLOG:
    BLOG PAGE – please exclude this page from the script, as it was already set up correctly. Because right now:
    1. It shows the fullwidth submenu TWICE, once above and once below my top image. It should just be BELOW the top image.
    2. All my sidebar elements flip to the bottom, instead of showing at the side.

    Any blog entry:
    1. There is NO FULLWIDTH SUBMENU SHOWING
    2. The image of the blog entry is gone, the text of the blog entry appears twice (????)
    2. All my sidebar elements are shown wrong

    A categroy entry:
    1. There is NO FULLWIDTH SUBMENU SHOWING
    2. All my sidebar elements flip to the bottom, instead of showing at the side.

    #1104795

    Hi,

    Thanks for the update.

    We edited the code a bit to exclude the single post page or prevent duplicating the content. The sub menus are now displaying in the archive and single post pages. (see private field)

    add_action( 'ava_after_main_title', 'ava_after_main_title_mod' );
    function ava_after_main_title_mod() {
    	$the_id = null;
    
    	if( is_archive() ) {
    		$the_id = 8416;
    	} else if( is_category() ) {
            $the_id = 8420;
        } else if( is_single() ) {
            $the_id = 8412;
        }
    
    	// } else if( avia_get_option('blogpage') == get_the_ID() ) { // the blog page
        //     $the_id = 8412;
        // }
    
    	$post = get_post( $the_id );
    
    	if( ! $post instanceof WP_Post || $post->ID == get_the_ID() ) {	
    		return false;	
        }
    
    	$content = Avia_Builder()->compile_post_content( $post );
    	echo $content;
    }

    Best regards,
    Ismael

    #1104802

    THANKS SO MUCH !!!
    Only problems still persisting are:
    1. The single blog posts show the sidebar items on the bottom of the page, and not to the right. It should look like when you click on eg. BLOG
    The single blog posts don’t show the image on top anymore.
    2. Same here: The category and archive pages show the sidebar items on the bottom of the page, and not to the right. It should look like when you click on eg. BLOG

    THANKS Nora

    #1105665

    Apparently you made some changes again?
    1. Now neither the SINGLE BLOG POSTS nor the CATEGORY or ARCHIVE page show the fullwitdh submenu anymore.
    The fullwidht submenu is gone again!
    They did show it before, it was working fine, but the sidebar elements were showing on the bottom instead of in the sidebar. Now the sidebar is displayed correctly again.

    2. AND the SINGLE BLOG POSTS still don’t show the image anymore!

    I really appreciate your help!!!

    #1106323

    PLEASE help me out here. After the fullwidht submenu showed perfectly fine on my ARCHIVE, CATEGORY and SINGLE POST pages, it’s gone again, but I certainly didn’t change anything.
    1. Now neither the SINGLE BLOG POSTS nor the CATEGORY or ARCHIVE page show the fullwitdh submenu anymore.
    The fullwidht submenu is gone again!
    They did show it before, it was working fine, but the sidebar elements were showing on the bottom instead of in the sidebar. Now the sidebar is displayed correctly again.

    2. AND the SINGLE BLOG POSTS still don’t show the image anymore!
    THANKS Nora

    #1106528

    Hi,

    Sorry about that. I forgot to re-enable the filter after editing it. You may need to disable the sidebar for now because the addition of the full width sub menu breaks the default layout of the page.

    Best regards,
    Ismael

    #1106624

    Thanks a lot!!! Everything works fine now.
    Thread can be closed!

    #1106837

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘Troubles with BLOG’ is closed to new replies.