Skip to content

Commit ee305e2

Browse files
author
Mike
committed
Update button block
1 parent 5f877cd commit ee305e2

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

blocks/button/index.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@
7979
save: function(props) {
8080
var attributes = props.attributes;
8181
return (
82-
el('a', {
83-
className: 'btn btn-primary',
84-
'href': attributes.button_url,
85-
'target': attributes.button_target,
86-
'rel': 'noopener noreferrer',
87-
},
88-
attributes.button_text
82+
el('P', {},
83+
el('a', {
84+
className: 'btn btn-primary',
85+
'href': attributes.button_url,
86+
'target': attributes.button_target,
87+
'rel': 'noopener noreferrer',
88+
},
89+
attributes.button_text
90+
)
8991
)
9092
);
9193
},

loki-blocks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: Blocks for use with the Loki theme, developed by Logic Design
55
* Author: Logic Design & Consultancy Ltd
66
* Author URI: https://www.logicdesign.co.uk/
7-
* Version: 1.0.4
7+
* Version: 1.0.5
88
* License: GPL-3.0+
99
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
1010
*

0 commit comments

Comments
 (0)