-
AuthorPosts
-
May 13, 2019 at 4:10 pm #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 NoraMay 16, 2019 at 5:35 am #1101237Hey 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,
IsmaelMay 16, 2019 at 8:25 am #1101323Thanks, 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
May 17, 2019 at 12:46 pm #1101769Hi,
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,
IsmaelMay 17, 2019 at 1:58 pm #1101804Thanks 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!!!!!May 20, 2019 at 4:21 am #1102358Hi,
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,
IsmaelMay 20, 2019 at 7:39 pm #1102553Thanks 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 NoraMay 21, 2019 at 4:15 am #1102665Hi,
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,
IsmaelMay 21, 2019 at 7:53 am #1102713Where 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 NoraMay 21, 2019 at 8:37 am #1102726So 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?May 24, 2019 at 6:12 pm #1103964Please 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?May 27, 2019 at 4:03 am #1104396Hi,
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,
IsmaelMay 27, 2019 at 8:40 am #1104446I 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 wrongA categroy entry:
1. There is NO FULLWIDTH SUBMENU SHOWING
2. All my sidebar elements flip to the bottom, instead of showing at the side.May 27, 2019 at 8:42 am #1104449I 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 wrongA categroy entry:
1. There is NO FULLWIDTH SUBMENU SHOWING
2. All my sidebar elements flip to the bottom, instead of showing at the side.May 27, 2019 at 9:22 am #1104459In 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!
May 27, 2019 at 11:11 am #1104477URGENT 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 wrongA categroy entry:
1. There is NO FULLWIDTH SUBMENU SHOWING
2. All my sidebar elements flip to the bottom, instead of showing at the side.May 28, 2019 at 12:56 pm #1104795Hi,
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,
IsmaelMay 28, 2019 at 1:01 pm #1104802THANKS 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. BLOGTHANKS Nora
May 31, 2019 at 12:12 pm #1105665Apparently 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!!!
June 2, 2019 at 11:11 am #1106323PLEASE 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 NoraJune 3, 2019 at 3:13 am #1106528Hi,
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,
IsmaelJune 3, 2019 at 9:10 am #1106624Thanks a lot!!! Everything works fine now.
Thread can be closed!June 3, 2019 at 9:20 pm #1106837Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Troubles with BLOG’ is closed to new replies.