Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1008241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:44:31+00:00 2026-05-16T08:44:31+00:00

I have a theme in which there are numerous options, like:- Setting Theme Type

  • 0

I have a theme in which there are numerous options, like:-

  • Setting Theme Type among many available
  • Setting Body Background Color & Image
  • Setting Header & Footer Images
  • Setting General Font Face, Size & Color
  • Setting Text Area Background Color, and Font Face & Font Color
  • Setting Form Area Background Color & Rounder Corners option
  • Setting Form Element Background Color, and Font Face & Font Color
  • Setting Link Default Color, Hover Color & Visited Color, with / without decoration
  • Providing options to upload any number of Images to be used in the user’s blog
  • and many more…

Can anybody please provide any info as to how this can be done in a best possible way, using custom PHP & jQuery?
I’m also open to other ways around.

EDIT:-
I have got some 12 themes all worked out, along with their own style sheets defined & icon packs. I have also got them to load upon each of the customer’s personal taste. What I don’t know is that how to manage the changes made to the customer’s theme choice by that customer from his own account? This has to take effect both the times :-

  • when the customer is making / loading the changes from his account
  • when the customer is viewing his account along with the changes

BTW, many many thanks for such a quick response, by two users & letting me know about my incomplete question.

Any help is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:44:31+00:00Added an answer on May 16, 2026 at 8:44 am

    Try something like this:

    <?php
    
        function template($file, $data = array())
        {
            ob_start();
            extract($data);
            include_once 'path/to/theme/folder/' . $file . '.php';
            return ob_get_clean();
        }
    
    
        // Assign values to the template file
        $values['theme_type'] = 'default';
        $values['bg_color'] = '#FFFFFF';
        $values['bg_image'] = 'path/to/bg/image.jpg';
        $values['font_face'] = 'Tahoma, Arial, Verdana';
        $values['font_size'] = '12px';
        $values['font_color'] = '#000000';
        // And so on...
    
        // Output template file
        echo template('theme_layout', $values);
    
    ?>
    

    And the theme_layout.php file in 'path/to/theme/folder/theme_layout.php' should look like this:

    <html>
    <head>
        <title>Theme Name</title>
        <style type="text/css">
            body {
                background-color: <?php echo $bg_color; ?>;
                background-image: url(<?php echo $bg_image; ?>);
                font-family: <?php echo $font_face; ?>;
                font-size: <?php echo $font_size; ?>;
                font-color: <?php echo $font_color; ?>;
            }
        </style>
    </head>
    <body>
    
        Theme type is: <?php echo $theme_type; ?>
    
    </body>
    </html>
    

    Update

    You are right that was only the concept, here’s what you have to do: Add new table in database user_themes for example and save all user related values there. For example user enters the admin page and sees a theme options like BG Color/Image, Font Name/Size/Color and enters his own values there… Form is submitted and values are saved in the database. Then during the theme display (where I assigned values to the template files) you get user entered theme options from database and assign as a theme values.

    I really don’t understand where jQuery should be used here, maybe in the form where user submits his options.

    Hope this is helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 508k
  • Answers 508k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It looks like you are using passenger/mod_rails from your deploy.rb.… May 16, 2026 at 4:13 pm
  • Editorial Team
    Editorial Team added an answer NSNumber is usually the way to go for basic stuff… May 16, 2026 at 4:13 pm
  • Editorial Team
    Editorial Team added an answer You would return the value from the function, like this:… May 16, 2026 at 4:13 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Firstly, this is not a question about repository synchronisation for which there are numerous
Consider a database(MSSQL 2005) that consists of 100+ tables which have primary keys defined
I have a WCF service which basically returns [DataContract(IsReference = true)] public class Person
I have seen many others with similar problems but I cannot find the flaw
What happens to the controls or the iframe or the div, which are hidden?
I am currently working on a PHP project which includes extensive database usage. The
I have written various C# console based applications, some of them long running some
I have several jobs and several packages. In SQL Server 2005 we used to
I'm reading in a file with Python's csv module, and have Yet Another Encoding
I run the technical side of a discussion forum, which is plagued by a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.