Okay
  Public Ticket #491428
Randomize Portfolio
Closed

Comments

  • Chris started the conversation

    Hey ThemeNectar,

    I noticed another user posted the same topic a few months back, with the response that this is currently not a feature.

    However, could you please point us in the right direction in terms of the shortcode and where those settings live within the theme?

    I'll have no problem creating this option on my own within the child theme if I know where to locate the code block within the parent theme, without digging through the files.

    Any help would be appreciated!

  • Chris replied

    Hey ThemeNectar,

    Found the \"nectar-addons.php\" file and added the following:

    array(

    \"type\" => \'checkbox\',

    \"heading\" => __(\"Random Ordering\", \"js_composer\"),

    \"param_name\" => \"random_ordering\",

    \"description\" => __(\"This will crate a random order or projects.\", \"js_composer\"),

    \"value\" => Array(__(\"Yes, please\", \"js_composer\") => \'true\')

    ),

    Now I\'m searching for the bit of code that generated the shortcode to include this option.

  • Chris replied

    Hey ThemeNectar,

    Alright, I\'ve found some blocks in the \"options-init.php\" file as well.

    At this point, I\'ll wait to hear something back from your team regarding a suggestion for tackling this issue.

    Cheers!

  •  8,939
    Tahir replied

    Hey ,

    You will have to add the rand attribute in the query which can be found at \"salient/nectar/tinymce/shortcode-processing.php\" .

    Thanks


    ThemeNectar Support Team 

  • carlnaus replied

    Hello,

    I'm trying to do this - has it moved? I can't seem to find the file specified. 

    Thanks!

  •  8,939
    Tahir replied

    Hey Carlnaus,

    You can now use the Post Grid Page Element which has a Random Option available: 

    5774387815.pngClick Image to View Larger.

    Thanks 


    ThemeNectar Support Team 

  •  2
    melsaunders replied

    Hi - I have tried to use the method below for randomising the portfolio, but I really prefer the style of the Portfolio Grid.

    See page:

    https://wordpress-391871-1342624.cloudwaysapps.com/projects/

    Top section uses 'Post Grid'

    Bottom section uses 'Portfolio'.

    Is there any way to better replicate the styling of Portfolio into the Post Grid (e.g. hide the title until hover?)

    Thanks!


  •  8,939
    Tahir replied

    Hey Again,

    Yes, the title can be hidden before hover with below CSS.

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    .nectar-post-grid[data-text-layout="all_middle"] .nectar-post-grid-item .content .post-heading {
        opacity: 0 !important;
    }
    .nectar-post-grid[data-text-layout="all_middle"] .nectar-post-grid-item:hover .content .post-heading {
        opacity: 1 !important;
    }

    Thanks


    ThemeNectar Support Team