You can definitely still use CSS style sheets in WordPress.
I realize if you’re new to WordPress that resource link is A LOT to take in, but wanted to give you a starting point on the Codex.
Thanks. It will take a little while to digest that.
As far as adding php. I know almost nothing about php but on my current non-Wordpress site I have “includes” that reference a header or adsense ad/etc..
in another file. That way, like CSS, I can change individual blocks of information on every page(1000s 0f pages) with that “include” at the same time.
However, when I write the php code for an adsense ad(for example) to be inserted as an include within one of my WordPress pages nothing shows up.
The php code I tried to insert is basically: <?php
include(“name and location of of php file”);
?>
Is there an alternative method for this or do the links you provided cover that as well?
Just to clarify, you’re trying to bring in another (existing) php template?
Some things are built-in and depending on the theme, it might be brought in in another way (ie: https://codex.wordpress.org/Function_Reference/get_template_part, for example)
For example, for my non-Wordpress site, I have Google Adsense banner ad code on a php page that is enclosed in <div></div> and that’s all. The code is what other “real” pages will refer to and place that information on an area of the page that could be changed to whatever I need but in this example its an Adsense Banner ad.
The non-Wordpress site page that refers to the above has code within it that says
<?php
include(“include_adsense_1.php”);
?>
However, on my WordPress site, when I paste the above php, with the correct location, the banner ad is not shown on the page. The php is meaningless the way it is to WordPress.
I want to be able to change information on numerous pages by simply changing the content on the php code page. For example take out the Adsense Banner code and instead have a certain photo take the place of every Adsense banner ad. ..but WordPress is currently not letting me do this.
I got the php external file to work by placing it in the WordPress directory instead of the root directory of the website. This along with the Insert PHP Plugin.
Now, I’ll have to look into the external css style sheets. The codex info looks overwhelming at this point. I need to find a simple way to have my pages “obey” certain external css style sheets like they do on a non-content manager sites.