I've got a custom theme running on the latest stable Concrete5 version.
It's all working great - but tonight I've come to create a variation of an existing template.
Inside the theme/themename/ folder I copied the PHP file for the template.
In the theme/themename/css folder I copied the CSS file used by the existing template.
In the CMS itself I created a new pageType with the alias to match both the php and css file's filename I'd created by copying the previous files.
The PHP / template file is loading fine when chosen as the template for a page, but it's now loading in the associated CSS file.
Cache cleared but to no avail.
Can anyone give me any clues what I'm missing?
This usually is because the css and/or js is hardcoded in the header.
Check the html head (in the template) if the path to the css/js is correct.
Related
I want to add/link boostrap CDN to my concrete5 (v. 5.6) block. I want it to be specific to this particular block only.
I tried to search in the old documentation at
https://legacy-documentation.concrete5.org/developers
but couldn't find anything. I found something in new documentation using assets
https://www.concrete5.org/community/forums/5-7-discussion/how-exactly-do-we-use-asset-registering
but this doesn't seem to work in old version.
Thank You
As said in the legacy-docs (version 5.6.x) under Blocks / Directory Setup / Stylesheets, JavaScript and Other Assets:
The following named items will be automatically added to a page's
header, if the block in question has been added to that page:
view.css
view.js
Additionally, this behavior also applies to any files of any name
within the following directories, should they exist:
css/
js/
So the block's CSS folder (under /application or in a package) is as follows:
blocks/block_handle/css/
You can also use the addHeaderItem call from your view function in the block's controller if you wanted to do something like the CDN, keep in mind that any CSS added will be applied to the whole page unless the classes are specific to the block.
So in plugins/yith-woocommerce-ajax-search/templates/yith-woocommerce-ajax-search.php, there is a line I want to change in the label, from "Search for:" to "Search". If I change it in this file, it's fine, but of course I want to keep the change in my own theme rather than modify it here.
So, I copied the entire plugin folder over into my theme folder and made the change, but it's not working. The path is themes/MYTHEME/yith-woocommerce-ajax-search/templates/yith-woocommerce-ajax-search.php
Any clues why this isn't working?
The plugin uses wc_get_template() to load yith-woocommerce-ajax-search.php. This means that you can put the template file directly in the themes/YOURTHEME/woocommerce/ directory, then your template should be loaded correctly.
I have a fully functional Wordpress custom theme. I have just installed Woocommerce and followed this guide. I have followed the very basic instructions to copy page.php, rename it and modify the loop. I have done this and am able to use Woocommerce, however in the page.php file, I have a
<?php get_header(); ?>
command, which successfully displays that part of the layout in my normal wordpress pages. However, in the direct clone which is now called woocommerce.php, it is not working fully, The links show up, but without any of the associated css which is linked into the header file. Any ideas why two versions of the same file would mean only one correctly imports / interprets the css?
Here are the two web pages:
http://www.gas-sense.co.uk/blog
http://www.gas-sense.co.uk/blog/product/gas-sense-personal/
OK, I have fixed this now. It was a dreamweaver issue, when cloning the file and renaming it, dreamweaver didn't seem to catch up with updating the links. I have since manually rewritten the references and it is working, thank for your help!
I'm trying to install new free Joomla template called gk_magazine. In the download page, I found three links to three zip files for Joomla 3.x:
gk_magazine_rest_files_J!3.zip
gk_magazine_quickstart_J!3.zip
gk_magazine_J!3.zip
I downloaded the three files to my computer and I tried to install them one by one in the following order:
gk_magazine_J!3.zip: it is installed correctly and Gk_magazine template becomes listed in the template manager and it has been set as default as the screen shot shows.
gk_magazine_quickstart_J!3.zip: it is installed correctly too, but there is no any additional items appeared in the template manager.
gk_magazine_rest_files_J!3.zip: It does not installed - Warning JInstaller: :Install: Cannot find XML setup file
I saw similar situations with other Joomla templates and I need to know what are the rules of each file described above in the installation of the new templates? are all of them are important? or just the first file only?
From the file structure you can tell what it is!
gk_magazine_rest_files_J!3.zip:
This one is as the name says it 'rest files' means: plugins, notes for a module and a few photoshop images (*.psd)
gk_magazine_quickstart_J!3.zip:
This one is a Joomla Site with the gk_magazine_J!3.zip Template which you can find in the folder templates
gk_magazine_J!3.zip:
This one is a template
EDIT:
Also what's Joomla Site with gk_magazine template mean too?
It means that this is a basic Joomla site which you can copy into your server root folder (e.g. htdocs on XAMPP)
You can see the templates in the templates folder here:
beeze3, protostar and system are some Joomla standard templates which are all in a new basic Joomla site. There also beeze5 or beeze20 as an example, but these are not automatically included in the basic Joomla site
i've created a new website under a working Magento install. The old website works fine, but the new one doesn't load the theme css. I can see it loads the .phtml files when enabling Template Path Hints.
I've already checked basic things 100 of times, so...
set theme to desired one
refresh Magento cache
check source code to see whats the css path
use i.e. firebug to see what css is being loaded
can you show your file structure?
whats the theme name?