DigitalPresences
Forum Replies Created
-
After trying the “Samuel B Method” as suggested by wordman1994, I have found a simple solution for those that do not have a loop.php file. I’m sure this will not work for all but it worked for me, and involved the excerpt.php file of my theme.
My site (https://www.HDHPexpert.com) does not have a loop.php file but I do have a solution for others who may be interested.
My current theme: Tutorialicious by Anonymous.
In my excerpt.php file, there is the following line of code:
<div class="excerpt_but"> <?php comments_popup_link('Questions/Comments?', '1 Comment', '% Comments'); ?> </div>
By using <!– and –> on each side of the three lines of code above I have hidden this code and POOF, the comments link and button is gone.
I hope someone finds this helpful, as I have been trying to remove the comments link from my website for months.
[signatue moderated per forum rules]
Forum: Fixing WordPress
In reply to: remove the "leave a comment" link / Twenty Ten Inverted 1.0Samuel B – thanks for your help on this. My site (https://www.HDHPexpert.com) does not have a loop.php file but I do have a solution for others who may be interested.
My current theme: Tutorialicious by Anonymous.
In my excerpt.php file, there is the following line of code:
<div class="excerpt_but"> <?php comments_popup_link('Questions/Comments?', '1 Comment', '% Comments'); ?> </div>
By using <!– and –> on each side of the three lines of code above I have hidden this code and POOF, the comments link and button is gone.
I hope someone finds this helpful, as I have been trying to remove the comments link from my website for months.
[signature moderated per forum rules]
Forum: Fixing WordPress
In reply to: "Search Meter" Plugin – Compatible with Google Search?Thanks Bennett – it’s a shame I can’t take advantage of your very helpful plugin.
Forum: Plugins
In reply to: link buildingI also am very interested in such a plugin – good reciprocal links are hard to come by!
rkbsham – what is your site? I’d be happy to consider a reciprocal link between us.
Forum: Fixing WordPress
In reply to: XML Parsing Error: XML or text declaration not at start of entitySamboli your link did the trick for me – only had to follow one suggestion from your link (https://validator.w3.org/feed/docs/error/WPBlankLine.html).
“Check your theme’s functions.php file for blank lines outside of <? and ?> bracketed section”
Thanks Samboli!
esmi – Just fixing the first few errors solved my problem, thank you!
I’ll be fixing the rest soon but it’s amazing how the right advice can lead to a quick solution. Thanks again.
Forum: Fixing WordPress
In reply to: HTML stripped on home page – want it activeRe-reading this and i want to clarify for those looking for this solution for their own theme:
I removed
$content = strip_tags($content);
entirely from my FUNCTIONS.php file, not template.php.I changed the number in <?php content_limit(400); to a value of 2000, which essentially means that I am now in total control of any “Read More” links should they be needed. This code was edited within my excerpt.php file.
Forum: Themes and Templates
In reply to: How to change Footer Code ?webvp did that link work for you?
Forum: Fixing WordPress
In reply to: HTML stripped on home page – want it activeWow alchymyth I cannot thank you enough. With your advice here’s what I’ve done to keep the html from being stripped from my posts:
I removed
$content = strip_tags($content);
entirely from my template.php file, as an experiment. To my surprise my pages load just fine without it and the html is not stripped! I haven’t clicked through my whole site but so far so good.Further helping my problem, I changed the number in
<?php content_limit(400);
to a value of 2000, which essentially means that I am now in total control of any “Read More” links should they be needed.Now all of my html shows on my homepage: images, links, formatting etc.
Thank you for taking the time to look at my site and digging through my php files. I didn’t even post my template.php code so it says a lot that you were willing to go the extra mile in helping me with my question.
To show my gratitude and if you’re interested, I would be glad to exchange a reciprocal link with you between our sites.
Forum: Fixing WordPress
In reply to: HTML stripped on home page – want it activefrom my excerpt.php file, starting with the line of code you asked for:
<?php content_limit(400); ?> </div> <div class="clear"></div> <div class="excerpt_data"> <div class="excerpt_right"> <div class="excerpt_but"> <?php comments_popup_link('Comment', '1 Comment', '% Comments'); ?> </div> </div> <div class="clear"></div> </div> </div> </div>
Toying with the ‘400’ number makes my excerpts longer but the html is still stripped. No links, no font formatting, all text smushed together etc. I have tried changing the word ‘excerpt_data’ to ‘content_data’ and this has made no visible changes.
I’m sure a fix isn’t far off, but at the same time me playing around with the code and trying any number of permutations is like likely to result in a positive result.
Any and all help appreciated thank you.
Forum: Fixing WordPress
In reply to: HTML stripped on home page – want it activeNo luck with that plugin.
I’m thinking this has to be related to my theme; for whatever reason it is not written in a way that allows pairing with a excerpt-controlling plugin.
For those with more knowledge than myself, is this something I can fix via only the excerpt.php code or are other theme files going to need to be altered as well?
Forum: Fixing WordPress
In reply to: HTML stripped on home page – want it activeI am giving that a shot as we speak – thank you for taking the time to read my post vtxyzzy.