The PHP Method sửa lỗi Revolution Slider Error
Thứ Hai, 2 tháng 2, 2015
Một cách khác sửa lỗi Revolution Error bằng phương pháp PHP:
- The Shortcode and Widget methods will work fine for most themes, but depending on how your theme was built, you may need to add the slider directly to one of your theme’s php files. In the following example example, we’ll use the “homepage” example code with a slider’s “alias” name of “slider1″. You can get your slider’s “alias” name by visiting the main settings of your slider:
- Next, decide where you want the slider to appear within your theme. Usually this will be somewhere inside your theme’s “page.php” file. To edit this file, from the main WordPress menu, hover your mouse over the “Appearance” menu item and select “Editor”. Then select “page.php” from the files listed on the right side of the page. Inside you’re theme’s “page.php” file, you should see something called “The Loop”:
- “The Loop” is where the page’s main content will get added to the page. So for this example, we’ll add the slider directly above the page’s main content, hence: before “The Loop”. Because we passed in “homepage” as the second argument, even though the slider is now embedded into the “page.php” file directly, it will only appear on the homepage you’ve designated for your site. Here are some more code examples:
Tags:
fix revolution slider error
,
khác
,
Revolution Slider Error