Jump to content

Search the Community

Showing results for tags 'shortcode'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hello Everyone! I am new here. I have visited this site many times before for info but haven't joined until now. I now find myself with a problem that I can not figure out on my own. I purchased a wordpress template and it come pre-loaded with many useful shortcodes. One of which caught my eye but I can seem to get the code for it to look the way I want it to. Hense why I am here with the pros asking for help. I will try to post as much detail as possible in the text below to help you assist me in this project. The short code in wordpress is this: [callout title="Visit Our Patient Portal" button="Patient Registration" link="http://google.com" buttoncolor="green" target="_blank" buttonmargin="4px 0 0 0;"]Very user friendly and easy to use![/callout] This entered looks like this on the home page: The callout code in the shortcode.php file looks like this: function minti_callout( $atts, $content = null) { extract( shortcode_atts( array( 'title' => '', 'button' => '', 'buttonsize' => 'normal', 'buttoncolor' => 'alternative-1', 'link' => '', 'target' => '_self', 'buttonmargin' => '0px' ), $atts ) ); return '<div class="callout"><div class="border clearfix"><div class="callout-content"> <h2 class="highlight">' .$title. '</h2>' . do_shortcode($content) . ' </div><div class="callout-button" style="margin:' .$buttonmargin. ';"> <a class="button ' .$buttonsize. ' ' .$buttoncolor. '" href="' .$link. '" target="' .$target. '">' .$button. '</a> </div></div></div>'; } function minti_box( $atts, $content = null) { extract( shortcode_atts( array( 'style' => '1' ), $atts ) ); return '<div class="description clearfix style-' .$style. '">' . do_shortcode($content) . '</div>'; } I am trying to add two more buttons for a total of three using the short code but this is my downfall. I want it to look like this: If you think that you can help, Please post here and let me know. I have been working on this for 3 days straight and I can't get it to work. I wish PHP was as easy as Photoshop. Thanks in advance, Bigsease30
×
×
  • 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.