hello all, before I was introduced as a new resident at this wordpress forums, I wanted to ask about all the problems associated with the theme on wordpress. Are all of you know how to make a param in php code in wordpress?
Since I was a developer of Joomla, if at Joomla I can use or make the following to add or change the theme with styles such as color, width, background and so forth. I want to know exactly how to add functionality or style menu switcher on wordpress
This is for setting of Joomla templates
if (isset($_GET['style']) && $_GET['style'] != "") {
$_SESSION['templatestyle'] = $_GET['style'];
} else {
$_SESSION['templatestyles'] = (!isset($_SESSION['templatestyle'])) ? $style : $_SESSION['templatestyle'];
}
switch ($_SESSION['templatestyle']) {
case "red":
$style = "red";
break;
$style = "blue";
break;
$style = "green";
break;
default:
$style = "red";
}
This is for param of Joomla templates
$style = $this->params->get("style", "red");
This is to use the style switcher on Joomla templates
<body id="color_<?php echo $style ?>">
Now, here I want to ask for help to all of you to give me an illustration to make a style switcher menu in wordpress, if anyone wants to share the experience with me, I'd be grateful to you