• Resolved Matt Peskett

    (@djmathu)


    Hello

    I have noticed that the job alerts plug-in view requires empty page content (i.e. just [job_alerts]) if it is to function correctly in edit or add mode. Any attempt to add HTML above this area (even a simple <h1>) is displayed beneath the edit or add fields. Looks fine on the alerts overview page (i.e. H1 (or slider or whatever) is correctly displayed above the shortcode) however once a user clicks edit or add the slider or H1 is forced beneath the fields and all styling is lost. In the short term my client will have to live with an unlabelled page but is there a solution to this?

    Thanks

    Matt

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    Hi Matt,

    As a bit of housekeeping, support for add-ons is not available here (these forums are provided by www.ads-software.com for the free plugin that is available here). Don’t want to run afoul of the rules and whatnot.

    You can resolve this by adding some ob_get_clean() to the returns on L213ff of includes/class-wp-job-manager-alerts-shortcodes.php, e.g.

    switch ( $this->action ) {
    				case 'add_alert' :
    					$this->add_alert();
    					return ob_get_clean();
    				case 'edit' :
    					$this->edit_alert( $alert_id );
    					return ob_get_clean();
    				case 'view' :
    					$this->view_results( $alert_id );
    					return ob_get_clean();
    			}

    I have this change keyed up for a future release, but going to let more folks here have a chance to look at it before deploying anything out.

    Cheers,

    Thread Starter Matt Peskett

    (@djmathu)

    Thanks Brandon – worked perfectly, ‘you the man’.

    Where to post in future noted.

    Matt

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Job Alerts Plug-In Styling Issue’ is closed to new replies.