Remove from blockquotes
-
I want to remove the feature from blockquotes, so that the icon doesn’t appear.
Not knowing much about php, I’ve removed a section of code which seems to work, but I’m not sure if there’s something I’ve missed or whethe rit’ll affect the function:
//Get all the blockquotes in the content and loop through them $blockquotes = $contentDOM->getElementsByTagName('blockquote'); foreach ($blockquotes as $blockquote) { $paragraphs = $blockquote->getElementsByTagName('p'); //If there are paragraphs, append the link individually. $paragraphcount = $paragraphs->length; if ($paragraphcount > 0) { foreach($paragraphs as $paragraph) { quotable_add_link($contentDOM, $paragraph, $quotableData); } } else { quotable_add_link($contentDOM, $blockquote, $quotableData); } }
And I realize that an upgrade will overwrite this – so am wondering if a dashboard option could be enabled to allow selection/deselection of blockquotes?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove from blockquotes’ is closed to new replies.