WordPress.org

Forums

Linking to page from a button (3 posts)

  1. sueheap
    Member
    Posted 2 years ago #

    I have this button that links to a submit job page. I would like to create another that will link to another page. Where do I need to change the code to point to the new page?

    <?php if (get_option('jr_submit_page_id')) : ?>
    
        <li class="widget widget-submit">
    
    		<?php if (!is_user_logged_in() || (is_user_logged_in() && current_user_can('can_submit_job'))) : ?>
            <div>
                <a href="<?php echo get_permalink(get_option('jr_submit_page_id')); ?>" class="button"><span><?php _e('Submit a Job','appthemes'); ?></span></a>
                <?php if ($text = get_option('jr_jobs_submit_text')) : echo wpautop(wptexturize($text)); else :
                    $packs = jr_get_job_packs();
                        if (sizeof($packs) == 0) :
    	                // display standard pricing
    	                $amount = get_option('jr_jobs_listing_cost');
    	                if ($amount && $amount>0) : echo '<p class="pricing"><em>'.jr_get_currency($amount).'</em> '.__('for','appthemes').' <em>30 '.__('days','appthemes').'</em></p>'; endif;
    	            endif;
                endif; ?>
            </div>
            <?php endif; ?>
    
            <?php if (is_user_logged_in() && current_user_can('can_submit_resume')) : ?>
    
            	<?php if (get_option('jr_allow_job_seekers')=='yes') : ?>
    
            	<?php endif; ?>
    
            <?php endif; ?>
    
        </li>
  2. Pioneer Web Design
    Member
    Posted 2 years ago #

    If it is just to be a link (not a submit form, button), then we need only add a simple HTML href and then style it with CSS (so it looks like a button..seems a class 'button' already exists).

  3. sueheap
    Member
    Posted 2 years ago #

    yes, thats all i need it to do..link to another page on the site and keep the css

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.