WordPress.org

Support

Support » How-To and Troubleshooting » Linking to page from a button

Linking to page from a button

  • 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>
Viewing 2 replies - 1 through 2 (of 2 total)
  • 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).

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Linking to page from a button’ is closed to new replies.