Tagged: , ,

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1408195

    Good day, everyone!

    I think I have run into this problem before, but cannot find the thread that addressed it.

    When creating a post that you want a direct link to either a file, or another content element (via url), it is meant that a post is created with a post format being “Link.” Despite doing that with several tested posts, I keep getting shown a page with the title (which is linked to the appropriate file), and then meta information below, instead of being directly linked to that file in the url. I know I have encountered this in the past, but cannot remember why it is happening in Enfold. It does not happen when testing with other themes.

    -jason

    #1408460
    This reply has been marked as private.
    #1408753

    Hi,

    I apologize for the delayed response.
    I tried to check it however I’m getting this error when trying to access the page: Your access to this site has been limited by the site owner

    Best regards,
    Nikko

    #1408807
    This reply has been marked as private.
    #1408808
    This reply has been marked as private.
    #1408817

    Hi,
    Thank you for the link to your post, I assume that you are asking how to get your News Widget in the sidebar to link to the post type “link”. Unfortunately for the News Widget you would need to edit the core files and make these changes with each update because it can not be added to your child theme, see this thread.
    I recommend using the Magazine element instead without the first image large as it looks the same in the sidebar:
    Enfold_Support_2157.jpeg
    To do this open an empty post with the Classic Editor and use the shortcode wand for the magazine element:
    Enfold_Support_2159.jpeg
    and then copy the shortcode to a Custom HTML widget in your sidebar, here is the shortcode I used in this example:

    [av_magazine link='category' thumbnails='aviaTBthumbnails' heading='' date_filter='' date_filter_start='' date_filter_end='' date_filter_format='yy/mm/dd' period_filter_unit_1='1' period_filter_unit_2='year' page_element_filter='' first_big_pos='top' image_big='magazine' items='10' paginate='' offset='0' heading_color='theme-color' heading_custom_color='#ffffff' heading_tag='' heading_class='' heading_link='' link_target='' img_scrset='' lazy_loading='disabled' alb_description='' id='' custom_class='' template_class='' element_template='' one_element_template='' av_uid='' sc_version='1.0' admin_preview_bg='']

    I assume that you would like to hide the excerpts and the border between each item, so try this css:

    .sidebar .custom-html-widget .av-magazine-content {
    	display: none;
    }
    .sidebar .custom-html-widget .av-magazine-content-wrap {
    	border: none;
    }

    For this expected result:
    Enfold_Support_2161.jpeg

    Best regards,
    Mike

    #1408825

    Hi Mike.

    I am not trying to use the news element or the magazine element. I am trying to use the core functionality of a post format that links directly to the url content in the post content field. We have done it in the past on other sites, and sometimes it works, sometimes it does not. A couple plugin developers have suggested that the theme is trying to wrap a template around it, but suggested I start with looking at Enfold, first.

    The link I gave was to the post link, which should transparently redirect the user to the url within the post content of that post.

    #1408826

    Hi,
    Here is your thread from last time with links to two solutions from Ismael.

    Best regards,
    Mike

    #1408843

    although I think that it is not generally to set, because you often want to add explanatory / introductory words to the external links (videos, audios …). And therefore a call to the post makes sense.

    but wouldn’t only a change in the loop-index.php be necessary?
    Within a blog, the $pf_link is also checked for post-format, so that here directly from the blog the link does not go to the post but to the link.
    so set the link for : ($post_format !== 'standard') to the postformat link ($pf_link) in general ?

    #1408860

    Hi,
    Thanks Guenni007 but Jason wants the URL to the link post to redirect to the external link, in this case a PDF.
    He is not referring to clicking on a link or post element such as a blog, masonry, or magazine item, he means the loading of the post should automatically redirect.
    For example if you go to our Blog Grid Demo and click on the item This is a post with post type “Link” item
    Enfold_Support_2167.jpeg
    it will redirect to the external link, this is true for almost any element that shows the item, but what Jason wants this direct link to the post to redirect instead of landing on the post and then clicking on the post title:
    Enfold_Support_2169.jpeg
    A direct link like this doesn’t go though the loop-index.php, as I understand.
    A redirect plugin would probably be the best solution, in my opinion.

    Best regards,
    Mike

    #1408875

    yes – if you go to : https://webers-testseite.de/blog-seite/
    and try to open that post with title: “font usage” the link and the image goes to the external link set in a post with postformat: link.
    If that link is a pdf it will directly open that pdf etc.

    On postslider we got ( line 860) :

    if( $format == 'link' )
    {
    	$current_post = array();
    	$current_post['content'] = $entry->post_content;
    	$current_post['title'] = avia_wp_get_the_title( $entry );
    
    	if( function_exists( 'avia_link_content_filter' ) )
    	{
    		$current_post = avia_link_content_filter( $current_post );
    	}
    
    	$link = $current_post['url'];
    }

    and for each postformat we got this new $link definition.

    maybe that is possible with the widgets too! To have a decision where the link of a list will go to – depending on the source postformat.
    And by the way for the latest post widget we got it as class on the li Element: (post-format-link, etc. …)

    #1408877

    Hi,
    Thanks for sharing Guenni007, and I’m sure this will help someone in the future, but this is not the situation that Jason is referring to.

    Best regards,
    Mike

    #1408878

    sorry for misunderstanding the goal.

    #1408880

    Hi,
    Thank you for all of your help, we all really appreciate it!

    Best regards,
    Mike

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.