Accessing page code
-
I’ve had my WordPress blog using the Twenty-Sixteen theme, for about four years and I’m now using Constant Contact to promote it, but to add a pop-up to my home page, this theme doesn’t allow access to the page’s html. I get that I need to upgrade to a Business plan, but will this theme then allow access to the html, or does the theme just not accommodate editing the html? Do I need to change themes as well as upgrading? Thanks!
The blog I need help with is: (visible only to logged in users)
-
Hi there,
Generally speaking, it’s best practice to avoid adding code directly to the theme. If you add code snippets directly to the theme files, they will be removed when the theme is updated. We don’t allow adding or editing WordPress.com theme files for a similar reason.
The best way to approach this is to use a plugin like Insert Headers and Footers (now called WP Code Lite). Plugins like this will add the code to the live site for you without affecting any of the theme files. It also provides the flexibility to change themes without losing any custom code snippets you have added. (Side note: I highly recommend switching to a newer theme, as Twenty-Sixteen is pretty old at this time. :) )
I checked your site and noticed you have a Constant Contact Forms plugin installed. Do you still need to add code? If so, please use the WP Code Lite plugin to add them to your site.
If you still need assistance, please don’t hesitate to let me know. If you’re following any guides from Constant Contact to achieve this, you can share that here as well, so I know the exact steps needed to get your pop-up working. :)
-
Hey, thanks so much for the reply! Yes, I just added the Constant Contact plugin yesterday and was immediately confused by the range of settings, as I merely expected to insert a bit of code.
I hesitate to change themes only because I’m figuring out all this by myself and I don’t want to break or disarrange anything, but if changing themes is the way to go I’m sure it will go well as long as I can get some direct support. Can I test other themes offline without changing my blog’s appearance online?
Constant Contact is pretty hands-on with tech support so I was going to speak with them tomorrow. I’m not sure they’re equipped to offer support on WP plugins but I expect to learn more about all that.
-
Hi there!
I hesitate to change themes only because I’m figuring out all this by myself and I don’t want to break or disarrange anything, but if changing themes is the way to go I’m sure it will go well as long as I can get some direct support. Can I test other themes offline without changing my blog’s appearance online?
I can totally understand what you mean! Changing themes can feel overwhelming, especially since you may not be familiar with the settings and customization options of a new theme.
There’s good news, though! Since you’re now on the WordPress.com Business plan, you can create a staging site, which creates an exact clone of your production site and allows you to test different features (like a new theme). Nothing you do on this staging site affects your live site, so you can try out as many themes as you want.
Feel free to check out the link below to find out more about using staging sites:
Use a staging site to clone your entire WordPress.com site. You can test significant theme and plugin updates, incompatibilities, or any other major changes on the staging site before applying them to your main (“production”) site. This guide will show you how to create a staging site on WordPress.com. This feature is available on sites with the WordPress.com Business and Commerce plans. If youOf course, if you use a theme from our theme showcase, we’ll be happy to help you set it up.
That said, changing your theme is not required to get the Constant Contact pop-up working. I suggested that since your theme is quite old, you could benefit from a newer one. :)
About the plugin, I’m not familiar with it since it’s by a third-party developer, but I found this article on their knowledgebase that may be helpful.
-
Hi Aisajib, If I may change gears here for a second, I just got a call from the guy I handed off another blog I was responsible for, at http://www.rogerscountydemocrats.com, and he is attempting to update it.
When trying to edit, he’s seeing old files and not the current content. I’ve looked at it myself (the two blogs are totally separate, with separate logins) and it is definitely old content, fonts are wrong, images are gone. It’s also the twenty-sixteen theme, which is how it was when I inherited it a couple of years ago, but it’s been manageable. However when I try to edit a file, the whole thing crashes.
I’m meeting with him in about 20 minutes and we’re going to try figuring it out.
Is the twenty-sixteen theme completely bonkers? Is it me? I can’t tell!
At the moment I’m down about a half-dozen rabbit holes, with my email, the blog(s), Constant Contact, and nothing seems to want to work for me.
If there’s anything you can tell me about the democrats blog with a cursory glance, it would help greatly. Thanks for your time and attention. -
hi again, please ignore the above. Turned out it was a Bluehost issue and is solved. Thanks.
-
Hi @mooney2021
Glad to know the latter issue was resolved. :) Please let me know if I can help you with anything else.
-
My only other question at the moment is that as soon as I upgraded to a Business plan, I now have a WordPress footer across the bottom of my homepage. How can I delete that?
-
The WordPress.com footer (also called the “credit” or “powered by” footer) still appears by default — even on the Business plan.
- How to remove it:
Assuming you’re referring to your website, gerrymooneyillustratingdickens.com, you can remove or edit the footer credit in your current theme by adding a small snippet of CSS:
- Go to Appearance > Customize.
- Click on Additional CSS.
- Paste this code:
.site-info {
display: none;
}- Click Publish.
That should remove the unwanted footer!
-
-
Well I do appreciate the advice and assistance I’ve gotten here, unfortunately though I cannot get anything to work.
The info provided by ltardimcce46dc07f was helpful except that once I added the css, there was no “Publish” option at that location. There was a “Save” button which I clicked, but the footer still appears on my home page.
My original intent was to have a popup on my home page connected to my ConstantContact account. I created one through CC, was given a snippet of code to insert on my home page html, but was cautioned here not to tinker with the html, which I understand completely. In any case when I tried to view the code, since my “home page” is just a list of my posts, there doesn’t appear to be any html for the home page and I realized I was looking at a list of just .css and .php files, so nothing I could do there.
I then installed the CC Forms plugin and tried to follow instructions. I appear to have created a form, and it says it’s active, but could not find info on making it appear. I find myself clicking through a lot of help pages filled with information, but no usable instructions.
As for changing my theme from Twenty Sixteen, I did create a staging site, and poked around other themes, but they all seem designed for specific uses like animal rescue, travel, photography, etc. and they all looked sort of cluttered and busy to me, so I looked, and tried a few, but I didn’t see anything suitable.
Ultimately all I want to do is create a popup window on my home page that gathers info for my CC account. I’m in touch with CC tech support and will continue to try to find a solution with them, but any advice here would be much appreciated.
-
Hi there, if your site is on the business plan, you don’t need CSS to remove the footer credit. You can follow this guide https://wordpress.com/support/footer-credits/#remove-the-footer-credit
Because Twenty Sixteen is a Classic Theme (not Block), make sure to follow the instructions in the tab “Classic Themes“.
(Just for general knowledge, in Classic themes, CSS is added in the CSS section of the Customizer.)
As far as adding a code snippet, have a look at this support guide https://wordpress.com/support/code/#how-to-insert-code You could add it to an HTML block in the footer widget area. https://wordpress.com/support/edit-the-footer/#tab-widgets I’m not certain that you could limit it to appearing only on your homepage.
Let us know if you need other help with this.
-
Hi!
When it comes to hiding the footer credits, you can also use this method. As explained above.
As for the form, ConstantContact does have a WordPress plugin you can here.
Discussing with their support team on the best way to integrate that into a pop-up may be the best next step.
You can suggest an integration with one of the Popup plugins visible here.Additionally, now that you’re on a Business plan, you do have access to priority support. If you have more questions, you can contact us using one of the options mentioned here: Contact WordPress.com Support
- The topic ‘Accessing page code’ is closed to new replies.
