Home>Support>single.php help please!

single.php help please!

Hi there, hope someone can help.

I have Vantage Premium but as my client is the only person to have access to the e-mail address with which it was purchased I can’t e-mail Site Origin support directly.

I am competent with computing but have little knowledge of CSS or .php file editing. I have only added basic lines of code.

So far I have almost entirely made the site with the Page Builder. I found getting the template to display text properly very difficult. Every page seemed to make text different sizes and I couldn’t get it running consistently at all. For this reason, if you’re wondering, the site is made up mostly of images.

The issue I’m having is I tried editing the ‘single.php’ file as my posts were displaying all kinds of social media buttons and comments fields I didn’t want or need.

Also, schoolboy error, I have not set up a child theme, which meant with my dodgy editing skills I have made it worse.

So, could anyone supply me with some kind of single.php template which will work with Vantage Premium, or even better advise me how to get the text displaying at correct font sizes and also remove unwanted comments field and social media buttons.

Hope all this makes sense, I am obviously new to wordpress, so if I’ve missed anything off tell me!

Home Page

Many thanks in advance!

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 5 months ago Alex S
    Hi, I Work Here

    Hi Zande,

    Sorry for the delay.

    If you’re working on your client’s website as long as you can quote the premium code (and prove you have access obviously) we’ll provide premium support.

    If you could point me in the direction of the content styling issue I’ll be able to help you resolve it so you don’t have to rely on images,

    To disable the included social media icons in Vantage please navigate to WP AdminAppearanceTheme Settings and disable the Post Sharing setting.

    You can remove the comments in two methods.

    Method 1: Just disable them. Please navigate to WP Admin > Settings > Discussion and disable the Allow People to Post Comments on new articles setting. This setting change is typically better to be changed early in the process as it’ll grandfather previous posts and allow comments for them still. To disable those you’ll need to open up each post and untick the Allow Comments setting in the Discussion meta box.

    To forcefully disable comments you just need to remove the following codeblock from single.php.

    <?php if ( comments_open() || '0' != get_comments_number() ) : ?>
    	<?php comments_template( '', true ); ?>
    <?php endif; ?>
    

    Let me know if this makes sense.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More