The PHP Method sửa lỗi Revolution Slider Error

23:51 |
Một cách khác sửa lỗi Revolution Error bằng phương pháp PHP:

  1. 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:
  2. 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”: 

  3. “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:
Đọc thêm…
Comments
0 Comments

Sửa lỗi Revolution Slider Error: Slider with alias test not found

23:30 |
Mò mẫm mãi về cací Revolution Slider này, cũng mò được cách sửa lỗi Revolution Slider Error: Slider with alias tu not found. Nên hôm nay mình viết nhật ký lại để sau này có gì vào vọc lại, không thì cũng chia sẻ cho các anh e đang tìm hiểu về vấn đề này cho trang nhật ký của mình:

  1. Main menu => Appearance => Editor.
  2. Tìm tới page.php => paste one of the examples below where you want the slider to appear on your page.
  3. Code để thay thê:
<!-- Load the slider with "slider1" alias every time -->
<?php putRevSlider("slider1") ?>

<!-- Load the slider with "slider1" alias only on the homepage only -->
<?php putRevSlider("slider1", "homepage") ?>

<!-- Load the slider with "slider1" alias only on a specific page with default permalinks -->
<?php putRevSlider("slider1", "2") ?>

<!-- Load the slider with "slider1" alias only on a range of pages -->
<?php putRevSlider("slider1", "2, 3") ?>

<!-- Load the slider with "slider1" alias only on a specific page with permalinks set to "Post Name" -->
<?php putRevSlider("slider1", "page_slug") ?>

<!-- Load the slider with "slider1" alias on a range of pages -->
<?php putRevSlider("slider1", "page_slug, another_page") ?>
Đọc thêm…
Comments
1 Comments