Two Custom Outputs (icons) on the Same Line
-
Hi,
Firstly, really great work on this plug in. It works brilliantly.
My problem: I’ve added two custom checkboxes to the functions.php that output a fontawesome icon if checked. However, I can’t seem to get them to appear inline. I know I’m missing something simple.
Here’s the code:
` $listing_template .= “\t\t\t” . ‘<% if ( bike ) { %>’ . “”;
$listing_template .= “\t\t\t” . ‘<span class=”fas fa-motorcycle fa-2x”></span>’ . “”;
$listing_template .= “\t\t\t” . ‘<% } %>’ . “”;
$listing_template .= “\t\t\t” . ‘<% if ( car ) { %>’ . “”;
$listing_template .= “\t\t\t” . ‘<span class=”fas fa-car-side fa-2x”></span>’ . “\r\n”;
$listing_template .= “\t\t\t” . ‘<% } %>’ . “\r\n”;`Could you take a look please.
The page I need help with: [log in to see the link]
- The topic ‘Two Custom Outputs (icons) on the Same Line’ is closed to new replies.