Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #842068

    Hi guys,

    I am working on a website for Zico Lopes. An architect. He wants to have a news section. Since he does not use much text he doesn’t need to have single post pages. How can I remove the link to the single pages.

    News
    http://zicolopes.alfredosilva.nl/blog/

    Single post page

    Thanks for helping

    #843169

    Hey AlfredoS,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

    .blog .post-title.entry-title, .blog .big-preview.single-big {
        pointer-events: none;
    }
    

    Best regards,
    Yigit

    #917881

    Hu Yigit,
    I tried but it is nog working. I also tried !important. No result.
    Greetings

    #918172

    Hi AlfredoS,

    The code Yigit gave you, works on the single post, this code will work on the magazine element you use for the news.
    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .av-magazine-title.entry-title a, 
    .av-magazine-entry.av-magazine-format-standard.av-magazine-type-post.av-magazine-entry-small  {
      pointer-events: none;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #918460

    Hi Victoria,

    Unfortunately the code is not working. Maybe I didn’t explain it well.

    On this page you can see the blog posts.

    The posts link to single post pages. Those are the links that I want to remove.

    The author of the site doesn’t us much text so an extra page is nog necessary.

    Greetings

    #919078

    Hi,

    Thank you for the update.

    Please use this script in the functions.php file to disable the magazine element’s link.

    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$('.av-magazine-entry').each( function() {
    		var thumb, title;
    		thumb = $(this).find('.av-magazine-thumbnail');
    		title = $(this).find('.av-magazine-title');
    		
    		thumb.find('a').attr('href', '#').css('cursor', 'default');
    		title.find('a').attr('href', '#').css('cursor', 'default');
    	});
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Ismael

    #919114

    Hi Ismael,

    Thank you for the reaction.

    I pasted the code in the functions.php file. This is what happens:
    https://www.dropbox.com/s/xr9fpgj2m53lb68/Screen%20Shot%202018-02-28%20at%202.44.28%20PM.png?dl=0

    I pasted the code below the other codes. Did I do that right?

    #919428

    Hi,

    That doesn’t look right no, please post admin login details in private so that we can have a closer look. We might need FTP details as well so please include those as well.

    Best regards,
    Rikard

    #919543

    I restorde it but if you can take a look it would be nice.

    #919550

    Hi Rikard,

    You can close the thread. I found a solution with CSS. Thanks for all the help.

    .blog-meta, h2.post-title.entry-title a{
    pointer-events: none;
    cursor: default;
    }

    #919642

    Hi,

    Glad you figured it out and thanks for sharing your solution! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘ZL: No link to single post page’ is closed to new replies.