Tagged: 

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1040884

    Is there a way to change the output (“NOTHING FOUND – Sorry, no posts matched your criteria”) when there are no portfolio entries in the blog posts block?

    #1040918

    Hey leviticus,

    Try to edit it in enfold > includes > loop-index.php (line 370):

    <p class="entry-content" <?php avia_markup_helper(array('context' => 'entry_content')); ?>><?php _e('Sorry, no posts matched your criteria', 'avia_framework'); ?></p>

    You can override this in a child theme, just create an includes folder and add loop-index.php file.
    Hope this helps.

    Best regards,
    Nikko

    #1041300

    So I got the child theme to recognize the new loop-index.php. How can I target a specific response for just the Portfolio items that have the Employment category?

    Here’s what I have so far:

        <article class="entry">
    		<?php if ( 'portfolio' == get_post_type() && in_category( '46' ) ) { ?>
    		
    		        <p class="entry-content" <?php avia_markup_helper(array('context' => 'entry_content')); ?>><?php _e('There are no year-round employment opportunities available at this time.  Please check back again soon!', 'avia_framework'); ?></p>
    
            <footer class="entry-footer"></footer>
    		
    		<?php } else { ?>
            <header class="entry-content-header">
                <h2 class='post-title entry-title'><?php _e('Nothing Found', 'avia_framework'); ?></h2>
            </header>
    
            <p class="entry-content" <?php avia_markup_helper(array('context' => 'entry_content')); ?>><?php _e('Sorry, no posts matched your criteria', 'avia_framework'); ?></p>
    
            <footer class="entry-footer"></footer>
    		
    		<?php } ?>
        </article>
    #1041719

    Hi leviticus,

    The code seems fine, if it’s not working, can you try to check if it satisfies both condition?
    Maybe you can also use has_category https://codex.wordpress.org/Function_Reference/has_category

    Best regards,
    Nikko

    #1042146

    I tried using just <?php if ( 'portfolio' == get_post_type() ) { ?> and it still wouldn’t pull in the custom “not found.” Any ideas?

    #1043164

    Hi leviticus,

    Do you have a caching plugin enabled? it might be preventing the changes from being displayed.
    Also I just want to clarify if this is on a single portfolio page?

    Best regards,
    Nikko

    #1043952

    No caching enabled, cleared my local cache and does find the new loop-index.php, but not pulling in the specific “if portfolio” variable.

    The portfolio items are being pulled in from the Blog Posts content element block on a page. So, not the default portfolio archive from the theme. (If that’s what you were asking?)

    #1044246

    Hi leviticus,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1044960

    Thanks so much. Details provided in private content area.

    #1045677

    Hi leviticus,

    I tried logging in with the credentials you gave however it didn’t work, please check.

    Best regards,
    Nikko

    #1046399

    Sorry about that. This should work.

    #1047479

    Hi leviticus,

    I apologize for the delayed response.
    Can we ask for ftp access also? I thought Appearance > Editor was available in the WP dashboard so we can try to check and test it.
    Just post the credentials in private content.

    Best regards,
    Nikko

    #1047791

    Here you go

    #1048203

    Hi leviticus,

    I have replaced this code you have:

    <?php if ( 'portfolio' == get_post_type() && in_category( '46' ) ) { ?>

    to:

    <?php if ( 'portfolio_entries' == $taxonomy && 46 == $term_id ) { ?>

    Let us know if you need further assistance.

    Best regards,
    Nikko

    #1048717

    Thank you so much! I really appreciate your help on this.

    #1048877

    Hi leviticus,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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