Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #932300

    Hi,
    I’m using Enfold and two plugins, WP-Jobmanager and WP-Downloadmanager.
    In both of them, I can create pages to offer f. e. jobs und downloads.
    Creating job- or download-pages, there is no entry, to select a sidebar, similar to the main pages.
    My problem is, that I don’t want to show the sidebar “Displayed Everywhere”;
    I want to show my created (different) sidebars (named: “Jobs” and “Download”).
    Could you help me, to solve that problem?
    Thanks’ Gerd.

    #932824

    Hey underhill123,

    Thank you for using Enfold.

    Please ask the plugin authors for the custom post type slug then use this filter in the functions.php file.

    add_filter('avf_builder_boxes', 'avf_builder_boxes_mod');
    function avf_builder_boxes_mod($metabox)
    {
    	foreach($metabox as &$meta)
    	{
    		if($meta['id'] == 'layout')
    		{
    			$meta['page'][] = 'job'; 
                            $meta['page'][] = 'download'; 
    		}
    	}
    
    	return $metabox;
    }

    Replace “job” with the custom post type slug/name of the Jobmanager plugin and “download” with the Downloadmanager’s.

    Best regards,
    Ismael

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