I was working on one of the client's site, using x-cart 4.7 version, the template is Reboot. I change their CSS file, but the site style is not changing.
I tried couple method, but still not changing, here's what I tried:
Rename the var/template_c to regenerate the cache. (<- template support suggest)
Uncheck Do not check if templates are changed, it's already unchecked.
I can't use http://www.yoursite.com/xcart/cleanup.php to clear cache. No folder and path found.
I was thinking should use X-cart admin/template-name/template-clean up/ Clear templates/X-Cart cache
Will this method delete a lot of things? Because can't back up the site and database, and I not really familiar with this platform.
Question2: Trying to change categories default image, I changed the setting/Images location/categories-icon(or Banner System images
)it's not changing anything, but Product thumbnails/image is working.
I even change the file name in FTP still working, so I so confused where those image pulling from.
Thank you for all the help.
Q1: Try locating which CSS file is loading on the page. Use web-dev-console for that or just view the page's source code. Temporarily untick the 'Use speed-up tool for CSS' checkbox on the 'Main page :: General settings :: General' before that.
Q2: There are 2 types of category images.
http://demo.x-cart.com/demo_goldplus/Computer-hardware/
1. Temporarily disable the 'Flyout Menus' module to localize the problem with category's menu icon.
2. The same solution as for Q1. Find out which path is used for the category image in the source code.
Related
The theme I am using has a slider -- a panel of automatically changing images to display a topic that the user can choose -- but it only shows a few slides. I want to extend it to a dozen slides. I did simple text searches to determine which files in the theme are used code files to provide the functionality to the slider. That was the easy part. I was able to extend the code from the few slides to 12 slides.
Now comes the more difficult and hidden part. As I see it, each slide has two parts that are not hardcoded. First, each slide has a caption -- a text description. Secondly, each slide has a URL associated with it that is where the browser goes if the user clicks on the slide. These two things are not hardcoded in any of the PHP or other files, as far as I can tell. They can be edited by the admin in the Drupal backend admin settings.
So I assumed that these fields are somehow set and retained in the database. But I did a search on a downloaded copy of the database and I did not find this text.
Please advise. What additional work do I need to do to complete this task?
I suppose I could just forge ahead. Obviously, this data is being stored somewhere. Maybe they are stored in the database in an encrypted form for security reasons. I could do an FTP upload of the site theme files. But then what? Do I uninstall the theme and then reinstall it? Do I just deactivate it and then reactivate it? How do I make my code changes work?
The theme is called "impact_theme" and as far as I can tell all the code for it resides in
sites\all\themes\impact_theme
The README.txt file for the theme is:
About Impact Theme
====================
Impact Theme is a Drupal 7 theme. The theme is not dependent on any
core theme. Its very light weight for fast loading with modern look.
Simple and clean design
Drupal standards compliant
Implementation of a JS Slideshow
Multi-level drop-down menus
Footer with 4 regions
A total of 10 regions
Compatible and tested on IE7, IE8, IE9+, Opera, Firefox, Chrome browsers
Browser compatibility:
=====================
The theme has been tested on following browsers. IE7+, Firefox, Google Chrome, Opera.
Drupal compatibility:
=====================
This theme is compatible with Drupal 7.x.x
Developed by
============
www.devsaran.com
Slideshow photos by http://www.flickr.com/photos/68666702#N00/
Help and Support Us
=====================
Please consider a small donation
Paypal ID : donation#devsaran.com
============================================================================
I made a subtheme according to this page: https://www.drupal.org/docs/7/theming/creating-a-sub-theme.
I logged in to the Administrative Dashboard and I made the subtheme as the default theme.
And then the website immediately crashed and I am unable to see anything apart from "HTTP ERROR 500".
What do you think I should do now?
For completeness sake, I will list here the screenshots I made when I was comparing my modifications to the original theme.
I am thinking what I should do now is try to step back and see if I can narrow down the point where the website crashes. But in order to do that, I wonder if it will do any good to just modify the files. I mean, the subtheme is already set as the default theme. How can I undo that without being able to log into the Admin Dashboard?
First, slides are stored in theme settings, so you should go to Appearance -> Your Theme -> Settings to edit them. That's however not very good way to store the variables that shouldn't have definitive number of values. Also slides are more site content then theme settings.
I would define new content type called "Slide" or something, add all the values one slide needs (picture field, description, link...) and use the View to collect those values - loop over them. That way you can have any number of slides. You can also add some field for ordering slides etc.
Also, I wouldn't use picture field directly (to display image uploaded by admin), but I would add image style for slide, to scale that image to proper dimensions. That makes life much easier for admin - he doesn't have to use some image editing tool to scale each image manually.
That's my suggestion - what I would do.
Second, site is "made" of files and database, so any content it displays must be in one of those two parts.
And third, start from just inheriting the them and see will it work and then change it step by step, so you can notice easier what causes the problem. Also if base theme is not public one (it won't get updates and so) you can change it directly.
And about error 500 - error can be logged or displayed. Run phpinfo() to see where is php.ini file. Edit it and allow at least error login. Or for you development environment even better allow error displaying.
I am trying to remove the featured image from the top of each post. I am using the Pure theme from gt3 themes. The featured image shows up at the top and shoves all the other content to the far right.
I have tried installing the remove featured image plugin, while the tickbox shows up clicking it has no effect. I have also tried editing the page.php and single.php pages within the theme as suggested by several other posts. But the lines they call to be removed are not present in my code (or at least I have not located them). The only code I am seeing (inside singel.php) related to the featured image/thumbnail is:
$featured_image =
wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'single-post-thumbnail');
I have tried removing this with no effect. I have also tried adding something like this to the css
.featured_image_standalone {
display:none;
}
Also no effect. I have a few clients that use the Avada plugin and I have managed to disable the 1st featured image with no problem but I am hoping for a free alternative to purchasing this plugin.
Alternatively, I would be satisfied if I can add additional images below the featured image, leaving the copy to the right. Like on this demo page.
Any help is greatly appreciated! I am a beginner but have been editing/managing WP sites for clients for several months now so I've gotten my hands dirty and with a little instruction I am sure I can remedy this issue.
Thanks!
PS. I tried adding links where appropriate but it appears I can only add 2 in the forum so please ask for clarification and I will post.
It's possible that you're viewing the pages that use template other than page.php.
I'd do the changes to the other template files (in the theme root directory). Also the templates that are dedicated for posts instead of pages.
Commenting that line might lead to an error of calling an undefined variable and/or assign an alternative default value if it isn't defined. So I'd initially experiment with a specific hardcoded thumbnail id like this:
$featured_image =
wp_get_attachment_image_src(
get_post_thumbnail_id( 123 ),
'single-post-thumbnail'
);
'123' being the test id that you're using.
In some environments when PHP gets a fatal error, the server continues to serve the last executable version of the files, hence you might be not witnessing the change because of the fatal error.
Edit
Based on the image that lists the files of the theme provided in the comments, I'd copy the following files, one at a time, to the child theme directory and modify the code there:
page.php
page-contacts.php
single.php
single-team.php
single-gallery.php
image.php
category.php
bloglisting.php
attachment.php
The previous list is ordered by likeliness of the file to be the one you'd want to update, so I'd try one at a time and see the results. Also you'll need to copy these files to the child theme because any modifications to the original files under the parent theme can be erased upon theme upgrade.
To find post ID you can check wp_posts table in phpMyAdmin, if that's not accessible, before anything you can do echo 'post_ID: ' . get_the_ID(); in one of the template files and visit a particular page to see the echo'd ID. Also I think there are some plugins that display the post ID's at the post table withing the admin dashboard UI.
In order to see whether the server serve the last executable files upon fatal error, you can make an echo statement and with every code change to see if the echo get printed.
I need to change the way main image on product page is loaded (there is only one image) and make it be loaded from external url.
Now: image is loaded from media folder on my server.
Need: image is loaded from external url without being saved on my server
I have created an additional attribute "externalimg". Its value is eg "https://images.otto.de/is/image/mmo/12489608?$001PICT30$"
I tried editing media.php file which for some reason deliver no changes at all, even if I delete it from server. I use a custom theme.
I did this with catalog images and it worked fine. All products have different images, so changing base media path didn't work.
Thanks in advance.
UPDATE: I have now found out that with default magento theme changing media.phtml works fine. With my theme "yummy" it does not work. Any changes in media.phtml are just ignored.
You should be able to override /app/design/frontend/yournamespace/yourtheme/template/catalog/product/view/media.phtml
If it doesn't exist, copy it from base into your theme folder at the correct path.
However, your theme may also use an extension that is over-writing this default template file. You should be able to use something like https://github.com/AOEpeople/Aoe_TemplateHints to find the correct template, or simply find some specific HTML around the product image and then search your source code to find the relevant section to alter.
I am having problems trying to figure out how exactly i can edit a simple page of the website. I didn't initially create it so i am given the task of trying to understand someones code. So the problem is... i am trying to change the simple font colour on the front home page, but i cannot even find the CSS file on magento or Wordpress so i'm kind of confused. I want to change the white font colour to black.
Do i just log in with FTP and edit the pages manually on there? Please give me some information on how i can go about editing any pages at all.
Wordpress
Wordpress have /wp-content/themes/ for a directory which stores all instaled themes (downloaded or created by you). You can edit everything of a theme there. The default stylesheet file in wp's /wp-content/themes/[yourtheme]/style.css. Attention: this CSS file can import another from somewhere else.
Finding the style
You can find the ids and classes statements just positioning the mouse over the element that you want to discover what is influencing it, right button click and select Inspect Element if in Chrome or Mozilla. An add-on to help is Web Developer.
Possibly useful links: http://ithemes.com/tutorials/ ; http://mcbuzz.wordpress.com/wordpress-tutorials-complete-list/ ; http://themeshaper.com/2009/06/22/wordpress-themes-templates-tutorial/ ; http://line25.com/articles/15-tutorials-to-help-you-build-wordpress-themes
Web developer
Mozilla | Chrome
#edit Yes, you can edit via FPT or SSH connection ;P
In wordpress you should check in settings->reading what the front page is set to and css changes can be done in the theme folder wp-content/themes/theme_name/ and for magento the css is usually in /skin/frontend/package/theme/css. or somewhere close depending on the template.
I installed Magento Gala Bigshop theme here: http://www.mobilsokak.com
When I make a change on theme (Gala Bigshop) settings on admin panel, site's CSS starts to not loading. You can see it on http://www.mobilsokak.com now.
Theme's original look: _store=default">http://demo.galathemes.com/gala-bigshop/index.php/?_store=default
Should I do something after theme setting update?
Thank you.
Log into your Magento Admin Panel and navigate to System -> Configuration -> Advanced -> Developer.
Under Javascript Settings and CSS Settings, set Merge JavaScript Files and Merge CSS Files to Yes.
Now save config.
Check if the problem solved.
try recaching your magento cache.. from your mangento admin..
admin->system->cache management.. and select all and select refresh from rightside dropdown..
also push flush javascript/css cache button from bottom...
let me know if you want further guidance..
Have you changed the colors in the theme through backend?
Because its applying FFFFFF color everywhere in the site which is giving error as there is no # applied infront of FFFFFF if you check in debugger.
Also there is a missing css file at /skin/frontend/default/galabigshop/em_blog/css/styles.css.
Check if adding this file could make any change and also check colors in backend.
You can get the css if not there from
http://demo.galathemes.com/gala-bigshop/skin/frontend/default/galabigshop/em_blog/css/styles.css