Questions tagged [current-page]

51 questions
1
vote
3 answers

jQuery current page via .find() and .each() function

I'm trying to make jQuery menu, which can highlight current page. Method is, add class current on selected. Here is html:
1
vote
1 answer

Trouble highlighting correct menu parent with wp_nav_menu classes while viewing “single posts”

I just updated a menu on a site of mine to utilize wp_nav_menu. Setting this up with WP was fairly straight forward however I've run into one small snag with the the way wordpress is outputting its parent/ancestor classes for use in highlighting the…
Mr.Brown
  • 179
  • 3
  • 11
1
vote
3 answers

How to differentiate if the current page is an EPiServer Page or not

I need to know if the current page is an EpiServer page or not. I need to know if the current page is the start page, I am using the following line of code. if(PageReference.StartPage.ID == CurrentPage.PageLink.ID) This works perfect on all…
tif
  • 1,109
  • 2
  • 12
  • 32
1
vote
1 answer

Android ViewPager Delete Current Page and move to next

In ViewPager when the user clicks on the delete button, I am trying to delete the current page and move to next page. When I try below code, It moves to next page but removes the last page. Kindly help me. @Override public Object…
Sujay U N
  • 4,974
  • 11
  • 52
  • 88
1
vote
2 answers

current_page? isn't working with routes with optional params

Here's the route: get "search(/:search)", to: "posts#index", as: :search Now if I'm at /search/somethingsomething and the view is: - if current_page?(search_path) = (do something) then that something isn't being done. If I remove the parenthesis…
Arif
  • 712
  • 11
  • 20
1
vote
1 answer

Pagination current page incorrect when 'use_page_numbers'

I'm using CI Pagination library on my website and now with $config['use_page_numbers'] set to TRUE the current page is always the first. Everything works fine, except this. Other settings: $config['uri_segment'] = 2; $config['prefix'] =…
Tanase Butcaru
  • 962
  • 1
  • 10
  • 23
1
vote
1 answer

iOS - UIPageControl page indicator dots not changing with UISwipeGestureRecognizer

I am using UIPageControl and UISwipeGestureRecognizer to switch between 2 view controllers of my application. I have modified this tutorial without using scroll view. I have 2 issues: 1) Using the swipe gesture is changing the view controllers/pages…
1
vote
1 answer

rails 3.2 will paginate change style current page

I am trying to add some style to the current page to highlight it from the other pages style. But my code does not seem to work... all the numbers look the same!
mamesaye
  • 2,033
  • 2
  • 32
  • 49
1
vote
2 answers

How To add more element to nav_link on current_page?

I have some static pages in a navigation menu. I want to add more element to the item which is currently displaying. navigation on view layout/adminzor.html.erb on…
GeekToL
  • 1,815
  • 1
  • 24
  • 46
1
vote
2 answers

Rails] Turning on CSS Class Active with current_page Method

In my view, I have:
  • Posts
  • The problem is, when I move away from /posts/ path, the class is turned off again. For example, when I go to /posts/1, the link…
    Maximus S
    • 10,759
    • 19
    • 75
    • 154
    1
    vote
    1 answer

    Single page dynamic content replacement site - how to individually highlight current content links?

    I have a single page site and when I click on the menu the content is replaced via jquery. Though the items are not linking to different pages, just different divs, I want to have the menu act like a regular website menu with 3 states of activity:…
    Marie Perry
    • 41
    • 1
    • 3
    0
    votes
    0 answers

    Active page Dropdown Menu Hover not working

    I am creating a website using wordpress/elementor. I changed the colors for the main menu in Customize. They work fine but not for the active page, where the hovering doesn't work. I am not familiar with css or coding, I would like to know whether…
    0
    votes
    0 answers

    WebView2 PDF get current page

    I just can find the way to get a PDF current page number displayed in a WebView2 (C# Winform .Net 6 project). I have search in Microsoft site and on the web and didn't find any information regarding that specific point. Anyone?
    0
    votes
    1 answer

    "Unable to set the CurrentPage property of the PivotField Class" with Pivot Table Filtering Attempt

    So I have been trying to figure out what I am doing wrong for the past two days and I can't seem to get past this error. The error is "Unable to set the CurrentPage property of the PivotField Class" Here is my code: Sub FilterBasedOnCellValue() Dim…
    0
    votes
    1 answer

    How do I make a link stay a color when on the current page?

    I'm not sure if this is done with javascript or css but if there is anyone out there who can be of any help....please, I sincerely appreciate it! Thanks in advance