Jump to content

Decarn

New Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Decarn's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks I tried to insert the "ccode in but my page could not load. Is my code correct? echo '<img "class='alignleft'" src="' . get_stylesheet_directory_uri() . '/images/default-image.jpg' . '" alt="Shares & Derivatives Left" />';
  2. Hi, Sorry if this is the code, how do I call alignleft in style.css for /images/default-image.jpg? add_filter( 'genesis_pre_get_image', 'category_featured_image_fallback' ); function category_featured_image_fallback() { if ( has_post_thumbnail()) : the_post_thumbnail( 'thumbnail', array( 'class' => 'alignleft' ) ); elseif ( in_category( 'shares-derivatives' ) ) : echo '<img src="' . get_stylesheet_directory_uri() . '/images/default-image.jpg' . '" alt="Shares & Derivatives Left" />'; elseif ( in_category( 'two' ) ) : echo '<img src="' . get_stylesheet_directory_uri() . '/images/category-two.png' . '" alt="Your Alt Text" />'; else: echo '<img src="' . get_stylesheet_directory_uri() . '/images/default-image.png' . '" alt="No Category" />'; endif; }
  3. Hi, I'm trying to combine the two codes below so that my images can be styled by CSS? echo '<img src="' . get_stylesheet_directory_uri() . '/images/category-two.png' . '" alt="Your Alt Text" />'; array( 'class' => 'alignleft' ) Thanks for your time.
  4. Hi guys, I have this code as below. [code] <INPUT SIZE="30" MAXLENGTH="50" TYPE="Text" NAME="txt_nh_pr_no" VALUE="<? echo antiSlash($nh_pr_no); ?>"> [/code] I want to change it to label so that users can only view the data but not able to edit it.
  5. Thanks wildteen88, I get the idea but I'm still a bit confused. Is there a sample tutorial or working code somewhere for reference?
  6. Hi Guys, Instead of having two seperate buttons, I want to combine it to a single button. [code]<INPUT TYPE="submit" NAME="btn_H_Submit" OnClick="return confirm('Click Yes to update database and send an email or No to update database only');"  VALUE="Enter Information"> [/code] First question, when I click on the button, the pop up shows 'OK' and 'Cancel'. How do I change it to 'Yes' and 'No'? Second, I want the 'Yes' button to update the database and send an email while the 'No' will only update the same database only (no email will be sent). Can it be done? A sample code on template on this will help me greatly. Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.