-
AuthorPosts
-
May 28, 2015 at 10:04 am #451049
Hi. I have a Custom Post Type called News that I want to remove the sidebar on. The sidebar shows up on single post view. However, I want to keep the sidebar for my regular Posts. How might I go about this?
Thanks!
May 29, 2015 at 5:59 pm #451732Hi dburton77!
Do this, https://kriesi.at/support/topic/overriding-functions-in-a-child-theme/#post-167093, to add the sidebar and layout options to your custom post type.
Regards,
ElliottMay 31, 2015 at 2:58 am #452103Hey, I implemented that and it works great to add the ALB to that post category. However, it breaks the Format > Link function that I still need. Some of the posts in that CPT I use the preview pic to simply link to an external site. Any way to make the Link Function on the preview pic work again?
June 1, 2015 at 10:49 pm #452820Hey!
Hmm, can you send us a link to your page and take a screenshot highlighting what is going on? I’m not sure I understand.
Cheers!
ElliottJune 2, 2015 at 12:22 am #452854Well perhaps it’s not an issue after all. The Format > Link option seems to be working fine today. Perhaps it was a caching issue.
I would like to know how I might get the posts that are set to Link format to open in a new window?
June 2, 2015 at 10:38 am #453047Hi!
We need to see the actual page with the “link” posts. Please post it here.
Cheers!
IsmaelJune 2, 2015 at 11:40 am #453078This reply has been marked as private.June 3, 2015 at 12:49 pm #453711June 9, 2015 at 6:53 pm #456868This reply has been marked as private.June 10, 2015 at 12:48 pm #457154Hi!
Did you use the Grid Layout? If yes, please edit config-templatebuilder >avia-shortcodes > postslider.php, look for this code around line 367:
$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
Replace it with:
$target = strpos($entry->post_content, 'http') === 0 ? '_blank' : ''; $output .= $thumbnail ? "<a href='{$link}' target='{$target}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
Make sure that you place the link at the very beginning of the post content. Use full or absolute url, sample:
http://www.mypage.com/page
If it works, please create a change log or note for this modification in case you update the theme.
Cheers!
IsmaelJune 11, 2015 at 2:04 am #457578Works great! Is there someway I can store the revised post slider.php file to my child theme so this change doesn’t get overwritten with theme updates?
June 11, 2015 at 4:47 pm #457903Hi!
Yes, please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Cheers!
YigitJune 14, 2015 at 4:55 am #458883Thanks so much!
-
AuthorPosts
- The topic ‘Remove Sidebar on a Custom Post Type’ is closed to new replies.