• I’m not finding what I’m looking for on the web so far. I want to take some static HTML content from my website Immigration Blog and make it editable via a simple plugin.

    I have multiple sites that use this header style but they change slightly based on divisions of the company. For example, I want the text ‘Immigration’ to be a variable that is changed within the plugin. Same with the color of the text.

    Where can I find out how to do this? I’m working on rebuilding theses sites so that non-programmers have an easier time in creating new blogs.

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter Buchanan Webmaster

    (@jeffsydor-bipc)

    Okay update, I’ve figured some stuff out here and have a plugin created that is defining custom variables that are posting to options.php.

    Now I want to set a default value to each. I’d assume that I would need a function similar to this, I’m just not sure how to code this.

    • if a value doesn’t exist, then create it and set value to ‘default’
    • or if the value is empty, then set it to ‘default’
    • This way, if the value does exist, then it shouldn’t reset the value to it’s default value when a new value is inserted.
Viewing 1 replies (of 1 total)

The topic ‘Moving static HTML into WordPress via plugin’ is closed to new replies.