Setting REDIRECT_TO_BASE_URL to true will automatically redirect the browser to the url set in BASE_URL (default behavior if the BASE_URL is defined), while setting it to false will render the site at whatever the current url is.ĭefine('REDIRECT_TO_BASE_URL', true) // or false REDIRECT_TO_BASE_URL is one other config value that allows additional control but is not necessarily needed. Once those config values are set, if a user enters "" the site will automatically redirect the browser to the value of BASE_URL, in this case: ""
How to make a favicon concrete5 full#
Lets say you allways want your site to show the full url of: "" including the "www"Īdd these two lines to your config/site.php file (or change the values if they're already there) The configuration file that we'll be dealing with is /config/site.php and when you open it up with a text editor, it'll look something like this:ĭefine('DB_USERNAME', 'myconcrete5site') ĭefine('DB_DATABASE', 'myconcrete5site') ĭefine('PASSWORD_SALT', 'biglongstringoflettersandnumbersxxxxxxxxxxxxxxxxxxx123xxxxxx') īy default (concrete5 version 5.4 and greater) any domain that's your web server is configured to display at this site will just display in the address bar as it was entered into the user's browser. Let's say your domain name is and your web server is all setup and working at this url: concrete5 allows a site owner to choose how their site behaves with a few configuration changes. Let’s fix that.There's a number of reasons why a site owner would choose to either enforce a particular url or allow a site to render under a number of different urls.
![how to make a favicon concrete5 how to make a favicon concrete5](http://www.codeblog.ch/wp-content/uploads/2014/09/concrete5.7-exception-2.png)
Our icons are off, and one of them is missing. This isn’t what the toolbar is supposed to look like. Usually, this is where we add editbale areas to our page templates, but before we do that, let’s look into why the toolbar isn’t rendering properly. Success! We have the concrete5 editing toolbar present on our page, floating above the basic content. Once you see the concrete5 dashboard, click the arrow in the toolbar to return to your site. You’ll see the standard concrete5 sign in page: Login to the site by going to (or wherever you have your site hosted). ccm-page class, and core concrete5 user interface elements will work properly.įinally, let’s see if we can now view our toolbar properly. This is good - now we’ll be able to target elements within our page content using the. If we check the HTML, however, we can see a DIV with this class wrapping the page content: Reloading the page doesn’t show much change, which is fine. Now, we’ll need to close the tag in the footer. Open header.php and add this line where the tag opens: getPageWrapperClass()?>"> In order to bolt on concrete5 user interface elements, concrete5 needs to know where your page’s markup begins and ends (so it can display it in slideout panels, for example.) This is done by adding a DIV with a special wrapper class call immediately after the start of the body tag, and closing it before the JavaScripts in the footer. Next, we need to wrap the page content in our page wrapper CSS class. To footer.php just before the closing tag. Since concrete5 adds JavaScript to the footer of the page, we’re going to have to something similar in our footer.php file as well. If we reload the page things look the same, but if you check the HTML source you’ll notice now that our title is powered out of the CMS. This call is including the concrete/elements/header_required.php file found in the core. That’s because View::element() includes files found in a root elements folder, not the one we’ve made in our theme.
![how to make a favicon concrete5 how to make a favicon concrete5](https://wpdaddy.com/wp-content/uploads/2019/12/How-to-Add-a-Favicon-to-Your-WordPress-Website.jpg)
This call is different than the $view->inc() methods we’ve used so far. We left all the theme’s custom stylesheets.
![how to make a favicon concrete5 how to make a favicon concrete5](https://installatron.com/images/remote/ss1_concrete.jpg)
What did we do here? We removed the tag, the tag, and the favicon tag. Additionally, they replace the site’s and various favicon tags in order to make those tags editable through the CMS.
![how to make a favicon concrete5 how to make a favicon concrete5](https://s3.amazonaws.com/finehomebuilding.s3.tauntoncloud.com/app/uploads/2017/10/30113946/Amvic-035-Large1-300x300.jpg)
These lines of PHP include the core JavaScripts and CSS files necessary to support the concrete5 toolbar. Enabling the concrete5 editing toolbar in your theme is usually just as simple as replacing some lines of HTML in your header and footer with some dynamic PHP calls.