• I’m trying to redo an existing non-Wordpress site to make it responsive(and take advantage of some themes which seem to employ javascript) and am confused as to how to duplicate some of my efforts in WordPress.

    The 10,000 page site that I currently have is ‘controlled’ by about 10 CSS files and some “include” php codes within the pages so that I can easily add or alter content/appearance of 10,000 pages at once.

    I am trying to upgrade the look of the site and make it responsive via WordPress but, right now at least, being very new to WordPress, cannot see how I am going to adapt the CSS and php ‘includes’ in the current version of my site to my new WordPress version.

    Can I still use CSS style sheets in WordPress or is that in conflict with the content management in WordPress?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter Nabonga

    (@nabonga)

    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?

    Thread Starter Nabonga

    (@nabonga)

    I think I found something for the php:

    https://wordpress.org/plugins/insert-php/

    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)

    Thread Starter Nabonga

    (@nabonga)

    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.

    Thread Starter Nabonga

    (@nabonga)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Using CSS style sheets with WordPress’ is closed to new replies.